'how to have close option in android keyboard

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


Solution 1:[1]

I have found my answer, the answer is :

android:imeOptions="actionDone"

Solution 2:[2]

  android:singleLine="true"
  android:maxLines="1"

Android disable Enter key in soft keyboard

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1
Solution 2 morteza jafari