//隐藏软键盘 ((InputMethodManager)getSystemService(INPUT_METHOD_SERVICE)).hideSoftInputFromWindow(WidgetSearchActivity.this.getCurrentFocus().getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS); // 显示软键盘,控件ID可以是 EditText,TextView ((InputMethodManager)getSystemService(INPUT_METHOD_SERVICE)).showSoftInput(控件ID, 0);

更多相关文章

  1. android 自定义控件(FloatLabelLayout)
  2. Android自定义控件
  3. Android(安卓)三角标签(自定义Textview控件)
  4. Android(安卓)点击按钮隐藏键盘
  5. android之视频播放控件VideoView简单应用
  6. android 监听判断软键盘的弹出、隐藏状态
  7. Android(安卓)计算控件尺寸
  8. Android(安卓)Spinner控件的简单应用
  9. android软键盘的显示与隐藏

随机推荐

  1. iPhone 7销量超华为OPPO!iOS中国份额狂涨
  2. Android 快速简单实现夜间模式
  3. android屏幕信息获取的两种方法
  4. Android类参考---Fragment(三)
  5. Android 代码模拟输入按键
  6. 开源Jamendo在线音乐播放器源码(二)
  7. Android设置RadioButton在文字的右边
  8. arcgis android sdk load local tile
  9. Android开发便签1:AlertDialog的使用
  10. Android之工程目录介绍