setPasswordToggleEnabled

open fun setPasswordToggleEnabled(isEnabled: Boolean)

Deprecated

Use #setEndIconMode(int) instead.

Enables or disable the password visibility toggle functionality.

When enabled, a button is placed at the end of the EditText which enables the user to switch between the field's input being visibly disguised or not.

Parameters

isEnabled

true to enable the functionality