I am facing issue with editText.setImeActionLabel
option. It's working fine on premarshmallow devices but not working on marshmallow.
Here is my code for reference,
edt_testIMEIoptions.setImeOptions(EditorInfo.IME_ACTION_DONE);
edt_testIMEIoptions.setImeActionLabel("Login", EditorInfo.IME_ACTION_DONE);
edt_testIMEIoptions.setOnEditorActionListener(new TextView.OnEditorActionListener() {
@Override
public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
if (actionId == EditorInfo.IME_ACTION_DONE) {
Toast.makeText(TestActivity.this, "Done called", Toast.LENGTH_SHORT).show();
return true;
}
return false;
}
});
Also Tried with blow options,
EditorInfo.IME_ACTION_GO
EditorInfo.IME_ACTION_DONE
EditorInfo.IME_ACTION_NEXT
Please guide me one the same.