android 隐藏输入法

InputMethodManager inputMethodManager =(InputMethodManager)activity.getApplicationContext().

getSystemService(Context.INPUT_METHOD_SERVICE); 

EditText editText = (EditText)findViewById(R.id.xxxx); 

inputMethodManager.hideSoftInputFromWindow(editText.getWindowToken(), 0); //隐藏

猜你喜欢

转载自chriszeng87.iteye.com/blog/1894860