Solution 1 :
There is a attribute in textLayoutInput named * app:passwordToggleEnabled="true"
*
Which will help you to achieve taht eyes icon to show or hide the password .
Problem :
[want like gmail eyes icon][1]see imagewant icon just like gmail’s password show hide , like if pass show then eyes is open and password hide then eyes with cross vice versa , same as like gmail password field , but there is issue in default, so i want change in default icon , i don’t want to add any drawable in TextInputLayout because after adding drawable default animation not works.