When the EditText
line is blank (the default), I'd like the ImageView
icon color to be white.
When the icon is pressed, I'd like the color to be black and then revert back to white because the press clears the EditText
line, so it would then again be empty.
With the ImageView
, I first set src
equal to a white drawable
. Any thoughts on how to switch the color state based on the length test of the EditText
line?