您的位置:首页 > 其它

EditText 将回车的按钮显示为“下一个” 并且点击“下一个”跳转到指定的EditText

2016-09-20 10:06 337 查看
只需要设置三个属性:

第一:

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐