我需要我的软键盘输入才能同时返回按钮和完成按钮,以便用户可以在EditText
中编写段落,然后单击Done
关闭键盘。这可能吗?
我试过了:
android:inputType="textMultiLine"
android:imeOptions="actionDone"
但它没有用。
PS:我正在测试三星键盘类型。答案 0 :(得分:0)
不,我相信在API级别11(3.0)之前不可能。
这里出现了同样的问题(在对已接受的答案的评论中讨论过):
Android Soft keyboard action button
从最终评论:
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).