Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要我的软键盘输入同时具有返回按钮和完成按钮,以便用户可以在我的中写入段落EditText并单击Done以关闭键盘。这可能吗?
EditText
Done
我试过了:
android:inputType="textMultiLine" android:imeOptions="actionDone"
在一起,但没有奏效。
PS:我正在测试三星键盘类型。
不,我相信在 API 级别 11 (3.0) 之前这是不可能的。
这里出现了同样的问题(在对已接受答案的评论中讨论):
Android 软键盘操作按钮
从最后的评论:
Looking at a few apps on my phone, it seems common to have the multiline box last, with a visible "Done" or "Send" button below it (e.g. Email app).