1

我需要我的软键盘输入同时具有返回按钮和完成按钮,以便用户可以在我的中写入段落EditText并单击Done以关闭键盘。这可能吗?

我试过了:

android:inputType="textMultiLine" 
android:imeOptions="actionDone" 

在一起,但没有奏效。

PS:我正在测试三星键盘类型。

4

1 回答 1

0

不,我相信在 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).
于 2013-10-08T07:59:19.793 回答