我如何完成按钮出现在软键盘上? [英] How do I get the done button to appear on the soft keyboard?

查看:84
本文介绍了我如何完成按钮出现在软键盘上?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,我没有看到软键盘上的完成按钮。还有就是标准的回车键,但是从我的阅读我带领相信,有可能是/应该是做的按钮(至少我已经尝试添加下面一行到我的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.

这篇关于我如何完成按钮出现在软键盘上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆