I want to show the virtual keyboard with Prev, Next Buttons above the keyboard.
When the user clicks prev button, cursor should move to the previous edit-text input
Android code to override the "Done" button in my EditText field:
myEditField.setOnEditorActionListener(new TextView.OnEditorActionListener() {
@Override
public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
if (actionId == EditorInfo.IME_ACTION_DONE) {
InputMethodManager imm =(InputMethodManager)getSystemService(INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(getWindowToken(), 0);//hide the keyboard.
return true;
}
return false;
}
});