不用改动到framework,在APP中设置如下:
输入法隐藏:
InputMethodManager methodManager =
(InputMethodManager) mContext.getSystemService(Context.INPUT_METHOD_SERVICE);
if (methodManager.isActive()) {
methodManager.toggleSoftInput(InputMethodManager.SHOW_IMPLICIT, InputMethodManager.HIDE_NOT_ALWAYS);
}
取消全屏
APP上引用控件,设置属性如下:
<EditText
android:imeOptions="flagNoExtractUi"