There is always a need to add additional keys, except for the default keys available on the QWERTY virtual keyboard.
Using XML
<EditText android:text="@+id/EditText01" android:id="@+id/EditText01" android:layout_height="wrap_content" android:layout_width="fill_parent" android:imeOptions="actionDone"/>
By Programmatic Way
An EditorInfo is the most useful class when you have to deal with any type of user input in your Android application.
IME_ACTION_DONE: This action performs the "done" operation to enter nothing, and the IME will be closed.
EditTextSample.setImeOptions(EditorInfo.IME_ACTION_DONE);
For more information, you can visit http://developer.android.com/reference/android/view/inputmethod/EditorInfo.html
IntelliJ Amiya May 03 '15 at 6:30 a.m. 2015-05-03 06:30
source share