Description:
I am using:
<com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputEditText />
</com.google.android.material.textfield.TextInputLayout>
with
<item name="passwordToggleEnabled">true</item>
To create the UI for a Password entry with a show/hide password toggle. The behavior matches the specs from the Material Guidelines shown here. However, these feel entirely counter-intuitive AND Google's own behavior for other apps does not match this.
Current Behavior


Expected Behavior (and Google's own behavior)


Android API version:
All versions
Material Library version:
1.2.0-alpha05
Device: All devices
Thanks for filing this @zkovar. I'm bringing this up with design to see what they have to say.
design agreed the current behavior should be flipped, so that the icon shows the action (what will happen after the click), instead of how now it shows the current status
This has been fixed by 99c6a28.
Most helpful comment
Thanks for filing this @zkovar. I'm bringing this up with design to see what they have to say.