Android虚拟键盘挡住输入框的处理方法

在PopupWindow里面

[java]   view plain copy
  1. 如果在PopupWindow里面就加上  
  2. popup.setInputMethodMode(Popupwindows.iNPUT_METHOD_NEEDED);          popup.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);  

 在Acitivty里就这样

[java]   view plain copy
  1. ".MealActivityGroup"   
  2.                  android:windowSoftInputMode="adjustUnspecified|stateHidden"  
  3.                  android:configChanges="keyboardHidden|orientation">  

你可能感兴趣的:(Android虚拟键盘挡住输入框的处理方法)