<How can I prevent the endIcon from getting focus ...
# stackoverflow
u
How can I prevent the endIcon from getting focus when the Next key is pressed in TextInputLayout? I don't want the end Icon of EditText to get focus when the next key is pressed. I have given the imeOptions as 'actionNext' . Now when I click the Next key , if the edittext is empty , it moves to the next edittext placing the cursor there. But if the edittext is not empty, clicking the next key shifts the focus to the endIcon. Is there a way I can prevent this ?