I want to change/display different icons for show password in android edittext. I am using following code to display icon.
If you would like to use default eye icon (show/hide password) but change the icon color then you simply put the line
app:passwordToggleTint="@color/yourColor"
If you would like to use custom eye icon, you should use
app:passwordToggleDrawable
to change the icon. and use
app:passwordToggleTint
to change the color of the icon. your custom icon color does not show. Tint color will be shown. The whole xml code like below:
and show_password_selector.xml is given below:
Hope that will help all.