【问题标题】:Enter and Return button in a single keyboard in androidandroid中单个键盘中的Enter和Return按钮
【发布时间】:2013-10-15 00:45:40
【问题描述】:

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

我试过了:

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

一起,但是没有用。

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

【问题讨论】:

    标签: android keyboard return enter


    【解决方案1】:

    不,我认为在 API 级别 11 (3.0) 之前这是不可能的。

    这里出现了同样的问题(在 cmets 中讨论了接受的答案):

    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).
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-08-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-01-26
      • 2011-05-25
      • 2011-11-08
      • 1970-01-01
      相关资源
      最近更新 更多