EditText被输入法覆盖的解决方法

 1 java代码中:
 2 
 3 mEditText.setOnClickListener(new OnClickListener() {
 4   public void onClick(View arg0) {
 5 
 6     InputMethodManager inputManager = (InputMethodManager) mCommentContext.getContext()
 7       .getSystemService(Context.INPUT_METHOD_SERVICE);
 8 
 9     inputManager.showSoftInput(mCommentContext, 0);
10   }
11 });
1 AndroidManifest.xml中:
2 
3 <activity
4             android:name=".ItemActivity"
5             android:configChanges="orientation|screenLayout"
6             android:windowSoftInputMode="adjustResize" 
7             android:launchMode="singleTask"
8             android:screenOrientation="portrait" />
原文地址:https://www.cnblogs.com/annieBaby/p/4782846.html