Android 在向editText添加textNoSuggestions后,如何在键盘上显示enter按钮?
基本上,我试图从编辑文本中删除建议下划线,这是通过Android 在向editText添加textNoSuggestions后,如何在键盘上显示enter按钮?,android,android-edittext,edittextpreference,Android,Android Edittext,Edittextpreference,基本上,我试图从编辑文本中删除建议下划线,这是通过editText中的textNoSuggestions完成的。但现在的问题是键盘没有显示回车键。因此,我想知道即使添加了标志,如何显示enterKey 代码: 试试这个 <EditText android:id="@+id/editTxt" android:layout_width="match_parent" android:layout_height="wrap_content" android:bac
editText
中的textNoSuggestions
完成的。但现在的问题是键盘没有显示回车键。因此,我想知道即使添加了标志,如何显示enterKey
代码:
试试这个
<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" />
Add
android:imeOptions=“actionDone”
非常感谢你救了我的命
<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" />