[英]EditText | Android TV | Softkeyboard
我尝试了多种方法来获取键盘上的NEXT按钮,但没有任何效果。
以下是我遵循的一些Stackoverflow链接。
我见过很少的Android TV应用程序,使用下面的键盘进行输入。
任何想法我怎么能得到它?
编辑:
这是我的XML
<EditText
android:id="@+id/etNric"
android:layout_width="@dimen/three_hundred"
android:layout_height="wrap_content"
android:hint="@string/hint_nirc"
android:singleLine="true"
android:imeOptions="actionNext"
android:maxLines="1"
android:minLines="1"
android:nextFocusDown="@id/etCaptcha" />
您还必须使用android:nextFocusForward
,同时还要以错误的方式提供ID。 我认为真正的问题还在于提供ID的方式。 虽然您也可以使用nextFocusDown
使用@+id/
代替@id/
android:imeOptions="actionNext"
android:nextFocusForward="@+id/yourNextEdittext"
并且您还需要指定inputType="yourInputType"
才能使edittext起作用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.