0

I don't wanna see the Enter option on my keyboard. showing close instead of Enter option. what should I do?

The screenshot of my layout:

enter image description here

my xml code :

        <EditText
                android:id="@+id/value_charge"
                android:layout_width="match_parent"
                android:layout_height="40dp"
                android:layout_gravity="center"
                android:background="@drawable/edittext"
                android:maxLength="8"
                android:layout_marginLeft="@dimen/_10sdp"
                android:layout_marginRight="@dimen/_10sdp"
                android:gravity="center"
                android:padding="5dp"
                android:textSize="15sp" />
The MJ
  • 453
  • 7
  • 17

2 Answers2

2

I have found my answer, the answer is :

android:imeOptions="actionDone"
The MJ
  • 453
  • 7
  • 17
0
  android:singleLine="true"
  android:maxLines="1"

Android disable Enter key in soft keyboard

morteza jafari
  • 270
  • 2
  • 12