简体   繁体   English

将textNoSuggestions添加到editText后,如何在键盘上显示Enter按钮?

[英]How to show the enter button in keyboard after adding textNoSuggestions to editText?

Basically I'm trying to remove the suggestion underline from the editText and which is done by textNoSuggestions in editText . 基本上,我试图从editText删除建议下划线,这是由textNoSuggestions中的editText完成的。 But now the problem is keyboard is not showing the enter button . 但是现在的问题是键盘没有显示输入按钮。 So, I wonder how to show the enterKey even after adding the flag ? 因此,我想知道即使添加了标志后如何显示enterKey吗?

Code: 码:

<EditText
        android:id="@+id/editTxt"
        android:textColor="#001919"
        android:gravity="start|top"
        android:inputType="textNoSuggestions"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:textCursorDrawable="@null"
        android:background="#fff"/>

Try this, 尝试这个,

<EditText
    android:id="@+id/editTxt"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="#fff"
    android:gravity="start|top"
    android:inputType="textNoSuggestions|textMultiLine"
    android:singleLine="false"
    android:textColor="#001919"
    android:textCursorDrawable="@null" />

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM