android软键盘设置actionSearch为什么不可以

业大神 2016-10-23 11:57:14
<EditText
android:id="@+id/et"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="点我就会弹出软键盘"
android:imeOptions="actionSearch"
android:lines="1" />

此外我在代码中也进行了设置,还是不可以。
EditText et = (EditText) findViewById(R.id.et);
et.setImeOptions(EditorInfo.IME_ACTION_SEARCH);


我使用的是小米5,但是我玩别人的app里面是弹出的就是“搜索”,求教!
...全文
285 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
DiQl 2016-10-24
  • 打赏
  • 举报
回复
代码里面要设置Options监听的.
_周星星 2016-10-24
  • 打赏
  • 举报
回复
这个 好像和 手机系统 有关系 低的系统 就不会显示

80,351

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧