gpt4 book ai didi

android - android中的多个edittext

转载 作者:太空宇宙 更新时间:2023-11-03 11:21:11 24 4
gpt4 key购买 nike

我想按照下图制作一个输入密码输入框。我已经使用了四个编辑文本,但我的问题是我无法将光标从一个编辑文本移动到另一个编辑文本,反之亦然。请帮助我这个。 enter image description here

最佳答案

我认为这样的事情会做你想做的事:

<LinearLayout
android:id="@+id/linearLayout1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >

<EditText
android:id="@+id/editText1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1" >


</EditText>
<EditText
android:id="@+id/editText2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1" >


</EditText>
<EditText
android:id="@+id/editText3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1" >


</EditText>
<EditText
android:id="@+id/editText4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1" >


</EditText>

或者您想在填充时从一个 EditText 自动跳转到另一个?

关于android - android中的多个edittext,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7978176/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com