How to add done option in android keyboard for hide keyboard

Total Post:36

Points:260
 1186  View(s)
Ratings:
Rate this:

how to add done option in android keyboard for hide keyboard like this How to add done option in android keyboard for hide keyboard

 

 

  1. Post:26

    Points:188
    Re: How to add done option in android keyboard for hide keyboard

    Set imeOptions  done in edittext on layout code                  

      <EditText
    android:id="@+id/mttext"
      android:imeOptions="actionDone"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"                          
    android:hint="@string/name"
    android:inputType="text"
    android:maxLength="20"
    </EditText>

      Modified On Apr-09-2018 01:58:23 AM

Answer