![](/img/trans.png)
[英]How to set edittext to show search button or enter button on keyboard?
[英]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.