Reputation: 2154
I have an edittext which takes numbers, when I click on it keyboard(numeric) shows up. After puting my values in it I press that next button which then open ups another keyboard(alphabet)which bascially I don't want and now on pressing done this time dismiss the keyboard. I want to skip the alphabet keyboard. I have even tried
if(actionId==EditorInfo.IME_ACTION_NEXT){
getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);}
Any sugesstion
Upvotes: 1
Views: 333
Reputation: 13520
add android:imeOptions="actionDone"
to the EditText
tag in your XML layout.
Upvotes: 2