Android屏蔽EditText的软键盘

2014-11-24 08:57:06 ? 作者: ? 浏览: 1

InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(myEdit.getWindowToken(), 0); //myEdit是你的EditText对象


下面就可以通过下面方法可以恢复显示


boolean showSoftInput(View view, int flags, ResultReceiver resultReceiver)
boolean showSoftInput(View view, int flags)
void showSoftInputFromInputMethod(IBinder token, int flags)


-->

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: