标签:win style 输入框 input systems div comment code mode
EditText.setFocusable(true); EditText.setFocusableInTouchMode(true); EditText.requestFocus(); InputMethodManager inputManager = (InputMethodManager) viewHolder.commentEditText.getContext().getSystemService(Context.INPUT_METHOD_SERVICE); inputManager.showSoftInput(EditText, 0);
android:windowSoftInputMode的值adjustPan或者adjustResize即可,像这样:
<activity android:name=".MainActivity" android:windowSoftInputMode="adjustPan" > ... </activity>
在清单文件对应的activity配置中加入一句Android:windowSoftInputMode="stateVisible|adjustResize"
标签:win style 输入框 input systems div comment code mode
原文地址:https://www.cnblogs.com/guanxinjing/p/11069907.html