HOW TO ADD DONE OPTION IN ANDROID KEYBOARD FOR HIDE KEYBOARD

Pawan Shukla

Total Post:38

Points:274
Posted by  Pawan Shukla
 887  View(s)
Ratings:
Rate this:

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

 

 

  1. Manoj Pandey

    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>

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!