簡體   English   中英

將textNoSuggestions添加到editText后,如何在鍵盤上顯示Enter按鈕?

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

基本上,我試圖從editText刪除建議下划線,這是由textNoSuggestions中的editText完成的。 但是現在的問題是鍵盤沒有顯示輸入按鈕。 因此,我想知道即使添加了標志后如何顯示enterKey嗎?

碼:

<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"/>

嘗試這個,

<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