我如何完成按钮出现在软键盘上?出现在、按钮、键盘

2023-09-06 00:11:44 作者:沒人在莪身後,莪必須堅強

所以,我没有看到软键盘上的完成按钮。还有就是标准的回车键,但是从我的阅读我带领相信,有可能是/应该是做的按钮(至少我已经尝试添加下面一行到我的XML的AutoCompleteTextView工作时,但无济于事

So, I do not see a done button on the soft-keyboard. There is the standard enter key, but from my reading I am lead to believe that there could be/should be a done button (when working with an AutoCompleteTextView at least. I have tried adding the following line to my xml, but to no avail:

android:imeActionLabel="Done"

我知道林失去了一些东西pretty的巨大的,是什么呢?

I know Im missing something pretty huge, what is it?

推荐答案

答案是包括

android:singleLine="true"

在XML的AutoCompleteTextView。此切换确认键为下,如果有多个edittexts(以及用于最后一个完成的),或者为做,如果仅存在一个的EditText。

in the xml for the AutoCompleteTextView. This switches the enter key for next if there are multiple edittexts (and done for the last one), or for done if there is only one edittext.

 
精彩推荐
图片推荐