安卓想不通怎么用setImeActionLabel-java,安卓android,edittext
1个回答
2016-04-23 · 做真实的自己 用良心做教育
千锋教育
千锋教育专注HTML5大前端、JavaEE、Python、人工智能、UI&UE、云计算、全栈软件测试、大数据、物联网+嵌入式、Unity游戏开发、网络安全、互联网营销、Go语言等培训教育。
向TA提问
关注
展开全部
The imeActionLabel sets the label for the button that appears on the top right on full screen IME mode (i.e., when your phone is in landscape). If you want to change the button to the bottom right of the keyboard, you can pass certain flags to imeOptions.
As far as I know, for that button you're limited to a certain set of actions (see here for a full list of supported flags), but since you seem to want a search button, all you have to do is to slightly adjust your first line and use IME_ACTION_SEARCH:
mSearchInput.setImeOptions(EditorInfo.IME_ACTION_SEARCH);
Mind you, the exact appearance of that button will depend on the input method. The default Android keyboard shows a magnifier for the search flag, while the Touch Input (HTC's keyboard) seems completely unaware of that flag, still showing a return button.
的imeActionLabel设置标签的按钮,出现在右上角全屏输入法模式(即。当你的手机在景观)。如果你想改变这个按钮右下角的键盘,你可以通过特定的旗帜imeOptions .
据我所知,这个按钮你限制在一个特��的行动(见在这里完全支持的标记列表),但既然你似乎想要一个搜索按钮,你所要做的就是稍微调整你的第一行和使用IME_ACTION_SEARCH :
mSearchInput.setImeOptions(EditorInfo.IME_ACTION_SEARCH);
请注意,这个按钮的具体外观将取决于输入方法。搜索的默认安卓键盘显示了一个放大镜标志,而触摸输入(HTC的键盘)似乎完全不知道国旗,仍然显示一个返回按钮。
As far as I know, for that button you're limited to a certain set of actions (see here for a full list of supported flags), but since you seem to want a search button, all you have to do is to slightly adjust your first line and use IME_ACTION_SEARCH:
mSearchInput.setImeOptions(EditorInfo.IME_ACTION_SEARCH);
Mind you, the exact appearance of that button will depend on the input method. The default Android keyboard shows a magnifier for the search flag, while the Touch Input (HTC's keyboard) seems completely unaware of that flag, still showing a return button.
的imeActionLabel设置标签的按钮,出现在右上角全屏输入法模式(即。当你的手机在景观)。如果你想改变这个按钮右下角的键盘,你可以通过特定的旗帜imeOptions .
据我所知,这个按钮你限制在一个特��的行动(见在这里完全支持的标记列表),但既然你似乎想要一个搜索按钮,你所要做的就是稍微调整你的第一行和使用IME_ACTION_SEARCH :
mSearchInput.setImeOptions(EditorInfo.IME_ACTION_SEARCH);
请注意,这个按钮的具体外观将取决于输入方法。搜索的默认安卓键盘显示了一个放大镜标志,而触摸输入(HTC的键盘)似乎完全不知道国旗,仍然显示一个返回按钮。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询