set Password Visibility Toggle Drawable
Deprecated
Use setEndIconDrawable(int) instead.
Replace with
setEndIconDrawable(int)Content copied to clipboard
Set the icon to use for the password visibility toggle button.
If you use an icon you should also set a description for its action using setPasswordVisibilityToggleContentDescription(CharSequence). This is used for accessibility.
Parameters
res Id
resource id of the drawable to set, or 0 to clear the icon