我正在开发针对Android 3.1的应用程序。 有没有一种方法来显示(或强迫)的Android键盘全屏模式?
I'm developing an application for Android 3.1. Is there a way to show (or forcing) the Android keyboard in fullscreen mode?
感谢
尝试:
activity.getWindow().setSoftInputMode(
WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN);
要隐藏或:
activity.getWindow().setSoftInputMode(
WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE);
或
activity.getWindow().setSoftInputMode(
WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);
其中的一个可以帮助你:)
One of these should help you :)