一、输入法出现 Done 按键

在EditText 中设置 android:imeOptions="actionDone"

将android:singleLine="true" 或者android:inputType="text"


二、点击外部区域键盘收回

protected void hideKeyboard(View v) {InputMethodManager imm = (InputMethodManager) BaseActivity.this.getSystemService(Context.INPUT_METHOD_SERVICE);imm.hideSoftInputFromWindow(v.getWindowToken(), 0);}



更多相关文章

  1. 输入法弹出后,不影响activity原有布局(android:windowSoftInputMo
  2. 输入法问题
  3. android 内置默认输入法
  4. 输入法软键盘搜索执行两次的解决方法
  5. android 模拟物理按键
  6. Android定制出厂默认输入法
  7. android添加外部按键
  8. EditText在输入法上显示搜索按钮
  9. 隐藏Android下的虚拟按键

随机推荐

  1. Android 调用系统相册选择图片并显示
  2. Android实现振动效果
  3. Android studio 打包问题:Lint found fata
  4. Android自动化测试之MonkeyRunner之Monke
  5. android 文本转语音
  6. Android高手进阶教程(十)之----Android P
  7. Android 上传文件到XP
  8. android 动态设置background颜色
  9. 隐藏Android底部的虚拟按键
  10. Android TextToSpeech语音播放文本