//点击屏幕 关闭输入弹出框
 @Override
 public boolean onTouchEvent(MotionEvent event) {
  InputMethodManager im = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE); 
  im.hideSoftInputFromWindow(getCurrentFocus().getApplicationWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);
  return super.onTouchEvent(event);
 }

 

 

相关文章:

  • 2022-12-23
  • 2021-09-08
  • 2022-01-08
  • 2021-10-10
  • 2021-09-17
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2018-12-18
  • 2021-10-27
  • 2022-12-23
  • 2022-12-23
  • 2021-08-07
相关资源
相似解决方案