Android完成按钮,而不是下一步 [英] Android Done button instead of Next
问题描述
我的键盘有问题.我有一个带有编辑文本的ListView
,当第一次打开键盘时,将显示完成"按钮,而不是下一步".问题是我需要在 AndroidManifest.xml 中使用adjustResize
,并且显示键盘时该列表会上移,所以我认为这就是键盘无法正常工作的原因.>
我该如何解决这个问题?
在需要键盘上完成按钮的字段中添加android:imeOptions="actionDone"
.
在需要下一个按钮的字段中添加android:imeOptions="actionNext"
.
此外,ime有很多选项按钮,例如转到",发送",搜索"等.
I have a problem with the keyboard. I have a ListView
with edit texts, and when the keyboard opens for the first time the Done button is displayed instead of Next. The problem is that I need to use adjustResize
in the AndroidManifest.xml and the list is moved up when the keyboard is displayed, so I think this is why the keyboard is not working properly.
How can I solve this issue?
Add android:imeOptions="actionDone"
to the field where you need a done button on your keyboard.
Add android:imeOptions="actionNext"
to the field where you need a next button.
Also, ime has many option buttons like go, send, search, etc.
这篇关于Android完成按钮,而不是下一步的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!