Popularity
5.5
Stable
Activity
0.0
Stable
715
21
86

Programming language: Java

passwordview alternatives and similar packages

Based on the "TextView/EditText Widget" category

Do you think we are missing an alternative of passwordview or a related project?

Add another 'TextView/EditText Widget' Package

README

:eyes: "All eyes, yeah I see 'em" — Yo Gotti, Down in the DM

compile 'com.xwray:passwordview:0.1'

Drop-in Android password view for the new material design spec

<com.xwray.passwordview.PasswordView
  android:layout_width="match_parent"
  android:layout_height="wrap_content"
  android:hint="@string/password_hint" />

Toggle password visibility

Touch the "eye" icon to toggle between traditional and visible password states.

Custom typeface support

In the spec, the password field is pictured in Roboto. I really liked how this looked, so, I made PasswordView support custom typefaces! If you set one, it will stay. If you don't, the default is still monospace — no worries.

passwordView.setTypeface(roboto);

Optional strikethrough

By default, PasswordView adheres exactly to the spec, using 54% / 38% opacity for the visibility icon.

If you find opacity too subtle (insert eye roll :eyes:), you can use the visibility icon with a strikethrough instead. (idea credit, @thekeeperofpie)

app:useStrikeThrough="true" / passwordView.setUseStrikethrough(true)