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" />

 

posted @ 2015-09-05 10:28  annie-baby  阅读(556)  评论(0编辑  收藏  举报