With an input password type, you can also enable an icon that can show or hide the entire text using the [passwordToggleEnabled](<https://developer.android.com/reference/android/support/design/widget/TextInputLayout.html#setPasswordVisibilityToggleEnabled(boolean)>)
attribute.
You can also customize same default using these attributes:
[passwordToggleDrawable](<https://developer.android.com/reference/android/support/design/widget/TextInputLayout.html#setPasswordVisibilityToggleDrawable(android.graphics.drawable.Drawable)>)
: to change the default eye icon[passwordToggleTint](<https://developer.android.com/reference/android/support/design/widget/TextInputLayout.html#setPasswordVisibilityToggleTintList(android.content.res.ColorStateList)>)
: to apply a tint to the password visibility toggle drawable.[passwordToggleTintMode](<https://developer.android.com/reference/android/support/design/widget/TextInputLayout.html#setPasswordVisibilityToggleTintMode(android.graphics.PorterDuff.Mode)>)
: to specify the blending mode used to apply the background tint.Example:
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:passwordToggleContentDescription="@string/description"
app:passwordToggleDrawable="@drawable/another_toggle_drawable"
app:passwordToggleEnabled="true">
<EditText/>
</android.support.design.widget.TextInputLayout>