I have two EditText txtPassword, txtEmail based on a radio change event. I just hide and show the txtPassword field. I just want to change ImeOptions using the program for which I wrote the following code
txtPassword.setImeOptions(EditorInfo.IME_ACTION_DONE); txtEmail.setImeOptions(EditorInfo.IME_ACTION_NEXT);
but it does not work. When I watch the soft keyboard, it shows that I did an action in txtEmail (only because before the radio has changed, only txtEmail is visible, so it automatically appears) but after manual focus in the password field and after As I see a soft keyboard with an email field, it automatically changed it using the following imeOptions. I just want one txtEmail to be visible than imeOptions, and if txtPassword, txtEmail are both visible than txtEmail, ImeOptions next and in txtPassword it displays imeOptions. Thanks in advance.
Edit:
radiologin.setOnCheckedChangeListener(new OnCheckedChangeListener() { public void onCheckedChanged(RadioGroup group,int checkedId) {
source share