Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lisawray/passwordview
A Material Android password view that toggles password visibility via an eye icon.
https://github.com/lisawray/passwordview
Last synced: 7 days ago
JSON representation
A Material Android password view that toggles password visibility via an eye icon.
- Host: GitHub
- URL: https://github.com/lisawray/passwordview
- Owner: lisawray
- License: unlicense
- Created: 2016-03-16T02:13:23.000Z (almost 9 years ago)
- Default Branch: development
- Last Pushed: 2017-05-27T03:49:31.000Z (over 7 years ago)
- Last Synced: 2025-01-05T06:15:51.981Z (14 days ago)
- Language: Java
- Homepage:
- Size: 3.4 MB
- Stars: 705
- Watchers: 22
- Forks: 86
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: License.md
Awesome Lists containing this project
- awesome-github-android-ui - passwordview - Android密码视图 (表单)
- awesome-android-ui - https://github.com/lisawray/passwordview
- awesome-android-ui - https://github.com/lisawray/passwordview
README
## 8/17/2016: As of about an hour ago, this library is deprecated!
Support for password visibility is now included in the
[Design Support Library](https://developer.android.com/topic/libraries/support-library/revisions.html) in [TextInputLayout](https://developer.android.com/reference/android/support/design/widget/TextInputLayout.html). :tada:# PasswordView [deprecated]
:eyes: "All eyes, yeah I see 'em" — [Yo Gotti, Down in the DM](https://genius.com/Yo-gotti-down-in-the-dm-lyrics)
`compile 'com.xwray:passwordview:1.0'`
### Drop-in Android password view for the new material design spec
### 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 (or 50% / 100% for light on dark themes). The visibility icon is drawn using `textColorPrimary` and its opacity values (dark or light) are determined dynamically.If you find opacity too subtle (insert eye roll :eyes:), you can use the visibility icon with a strikethrough instead.
(idea credit, [@thekeeperofpie](https://github.com/TheKeeperOfPie))`app:useStrikeThrough="true"` / `passwordView.setUseStrikethrough(true)`