ITeye博客

android 键盘 搜索键

liangoogle · 2013-04-15 16:52 · android 控件 · 移动开发 · Markdown

想让软键盘上的enter键显示搜索图标:             

xml中设置:

               android:imeOptions="actionSearch"
                android:inputType="text"

.java中:

               mQueryTextView.setImeOptions(EditorInfo.IME_ACTION_SEARCH);//显示搜索图标。

               mQueryTextView.setInputType(EditorInfo.TYPE_CLASS_TEXT);

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。