虚拟键盘挡住了输入框怎么办?加两行代码就行,输入框两行,//在PopupWind
分享于 点击 23452 次 点评:56
虚拟键盘挡住了输入框怎么办?加两行代码就行,输入框两行,//在PopupWind
//在PopupWindow里面如果实在PopupWindow里面就加上popup.setInputMethodMode(PopupWindow.INPUT_METHOD_NEEDED); popup.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);<!-- 在Acitivty里就这样 --><activity android:name=".MealActivityGroup" android:windowSoftInputMode="adjustUnspecified|stateHidden" android:configChanges="keyboardHidden|orientation"></activity>//该片段来自于http://byrx.net
用户点评