Tuesday, 16 September 2014

Close/hide the Android Soft Keyboard after pressing done button

21:38:00 Posted by Kumanan

To remove the "Enter" key from the soft keyboard, add an attribute to your Edit Text as given below,

android:singleLine="true"

To hide the keyboard after pressing "done" button, add an attribute to the Edit Text as given below,

android:imeOptions="actionDone"

If you want "next" button in keyboard, please enter the below attribute for every EditText,

android:imeOptions="actionNext"