imeOptions" actionNext"编程 - 如何跳转到下一个字段? [英] imeOptions "actionNext" programmatically - how to jump to next field?

查看:766
本文介绍了imeOptions" actionNext"编程 - 如何跳转到下一个字段?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在布局XML,可以指定安卓imeOptions =actionNext添加了下一页按钮,在虚拟键盘和点击就可以了 - 焦点跳到下一个字段

In layout XML it is possible to specify android:imeOptions="actionNext" which adds Next button in virtual keyboard and by clicking on it - focus jumps to the next field.

如何做到这一点编程方式 - 例如,基于某些事件触发的重点转到下一个字段?

How to do this programmatically - e.g. based on some event trigger focus to go to the next field?

推荐答案

您可以使用来自EditorInfo类中的常量输入法的选项。 喜欢,

You can use the constants from EditorInfo class for the IME options. like,

editText.setImeOptions(EditorInfo.IME_ACTION_NEXT);

这篇关于imeOptions" actionNext"编程 - 如何跳转到下一个字段?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆