隐藏输入法软键盘

Posted wikiki

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了隐藏输入法软键盘相关的知识,希望对你有一定的参考价值。

 

	/**
	 * 隐藏软键盘
	 * 
	 * @param context
	 * @param editText
	 */
	public static void hideSoftKeyBroad(Context context, View view) {
		InputMethodManager mgr = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);
		mgr.hideSoftInputFromWindow(view.getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);
	}

  

 

以上是关于隐藏输入法软键盘的主要内容,如果未能解决你的问题,请参考以下文章