1

Is there any way to do setEnabled = false passwordToggle icon?

I change the color of passwordToggle icon when there is no text in password field. (I make it look disabled-not clickable) but of course it still works.

textinputlayout.setEnabled = false makes all layout untouchable so that doesn't work.

Sample image (not mine)

Idea : I can customize the toggle button, I can use same disabled icon for both clicked and unclicked, that is just a workaround and its hard to find default icon. Change to custom icon from eye-icon(default) for hide-show password in android EditText

Dr Mido
  • 2,414
  • 4
  • 32
  • 72
Emre Akcan
  • 982
  • 10
  • 27

0 Answers0