How to disable quot;Nextquot; button on a EditText software keyboard (replace with quot;Donequot; button)(如何禁用“下一步EditText 软件键盘上的按钮(替换为“完成按钮))
问题描述
我的 Android 应用程序中有一堆 EditText,每个都将 InputMethod 设置为 numberSigned.我的目标设备没有硬件键盘,而是使用软件键盘输入数字.Android 将输入框右侧的标准完成"按钮替换为下一步"按钮.如何改用完成"?
I have a bunch of EditTexts in my Android application, each with InputMethod set to numberSigned. My target device does not have a hardware keyboard and uses the software keyboard for numeric entry. Android replaces the standard "Done" button to the right of the entry box with a "Next" button. How can I use "Done" instead?
推荐答案
尝试将 android:imeOptions="actionDone"
添加到您的 EditText
.
Try adding android:imeOptions="actionDone"
to your EditText
.
参考
这篇关于如何禁用“下一步"EditText 软件键盘上的按钮(替换为“完成"按钮)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何禁用“下一步"EditText 软件键盘上的按钮


- 用 Swift 实现 UITextFieldDelegate 2022-01-01
- 如何检查发送到 Android 应用程序的 Firebase 消息的传递状态? 2022-01-01
- Android - 拆分 Drawable 2022-01-01
- 在测试浓缩咖啡时,Android设备不会在屏幕上启动活动 2022-01-01
- 想使用ViewPager,无法识别android.support.*? 2022-01-01
- Android - 我如何找出用户有多少未读电子邮件? 2022-01-01
- android 4中的android RadioButton问题 2022-01-01
- Android viewpager检测滑动超出范围 2022-01-01
- MalformedJsonException:在第1行第1列路径中使用JsonReader.setLenient(True)接受格式错误的JSON 2022-01-01
- 使用自定义动画时在 iOS9 上忽略 edgesForExtendedLayout 2022-01-01