我想显示输入总是((InputMethodManager)context.getSystemService(Context.INPUT_METHOD_SERVICE))
当我在:
Configuration.ORIENTATION_LANDSCAPE mode单击enter后,或在输入上单击Send。
我试过这个:
if (event != null &&
event.getKeyCode() == KeyEvent.KEYCODE_ENTER &&
event.getAction() == KeyEvent.ACTION_DOWN) {
if (Screen.getScreenOrientation(mycontext) == Configuration.ORIENTATION_LANDSCAPE)
Utils.hideInput(mycontext, EditTextSend);
else
Utils.showInput(mycontext, EditTextSend);但这不适合我。用户单击“上一步”时,是否可以不隐藏输入?
发布于 2013-01-12 18:05:30
我的解决办法很简单:
return true;发布于 2012-12-24 21:52:12
您可以在您的Activity中控制每个manifest的键盘可见性,请查看:http://developer.android.com/guide/topics/manifest/activity-element.html#wsoft
要显示键盘,请始终使用:
<activity android:windowSoftInputMode="stateAlwaysVisible" ... />https://stackoverflow.com/questions/14025342
复制相似问题