I want the soft keyboard in my app to show Done
when clicking on a particular EditText
. This is how it looks
<EditText
android:id="@+id/code_editText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/enter_code_textView"
android:layout_marginStart="@dimen/margin_25dp"
android:layout_marginLeft="@dimen/margin_25dp"
android:layout_marginTop="@dimen/margin_12dp"
android:layout_marginEnd="@dimen/margin_25dp"
android:layout_marginRight="@dimen/margin_25dp"
android:background="@drawable/edittext_background"
android:maxLines="1"
android:inputType="text"
android:imeOptions="actionDone"
android:textColor="@color/black"
android:textCursorDrawable="@null"
android:textSize="16sp" />
But this doesn't work. The soft keyboard enter key text doesn't change at all. I tried this on multiple devices, one Oreo
and one KitKat
. I also tried using singleLine
attribute but that doesn't work too. What am I missing here? Thanks in advance!