只需要设置三个属性:
第一:
android:imeOptions="actionNext"第二:必须要设置,不然还是显示的是回车的符号
android:singleLine="true"第三:
android:nextFocusForward="@+id/et_express_receiver_address"
<EditText
android:selectAllOnFocus="true"
android:id="@+id/et_express_receiver_name"
android:gravity="center"
android:imeOptions="actionNext"
android:nextFocusForward="@+id/et_express_receiver_address"
android:singleLine="true"
android:textSize="@dimen/sp26"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="2"/>
转自:http://blog.sina.com.cn/s/blog_60b5e13e0102whzm.html
本文介绍如何在Android应用中通过设置EditText属性实现输入框间的自动切换。主要涉及三个关键属性:android:imeOptions=actionNext确保按下回车键时进行切换;android:singleLine=true使输入框保持单行显示;android:nextFocusForward指定下一个获得焦点的视图ID。
1044

被折叠的 条评论
为什么被折叠?



