{"id":13644610,"url":"https://github.com/lisawray/passwordview","last_synced_at":"2025-04-05T04:12:15.312Z","repository":{"id":93256872,"uuid":"53993612","full_name":"lisawray/passwordview","owner":"lisawray","description":"A Material Android password view that toggles password visibility via an eye icon.","archived":false,"fork":false,"pushed_at":"2017-05-27T03:49:31.000Z","size":3566,"stargazers_count":704,"open_issues_count":5,"forks_count":86,"subscribers_count":22,"default_branch":"development","last_synced_at":"2025-03-29T03:08:22.579Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lisawray.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"License.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-03-16T02:13:23.000Z","updated_at":"2025-03-12T07:52:35.000Z","dependencies_parsed_at":"2023-03-13T17:19:32.165Z","dependency_job_id":null,"html_url":"https://github.com/lisawray/passwordview","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lisawray%2Fpasswordview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lisawray%2Fpasswordview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lisawray%2Fpasswordview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lisawray%2Fpasswordview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lisawray","download_url":"https://codeload.github.com/lisawray/passwordview/tar.gz/refs/heads/development","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247284951,"owners_count":20913704,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T01:02:09.293Z","updated_at":"2025-04-05T04:12:15.291Z","avatar_url":"https://github.com/lisawray.png","language":"Java","readme":"## 8/17/2016: As of about an hour ago, this library is deprecated!  \nSupport for password visibility is now included in the \n[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:\n\n\n# PasswordView [deprecated]\n\n:eyes: \"All eyes, yeah I see 'em\" — [Yo Gotti, Down in the DM](https://genius.com/Yo-gotti-down-in-the-dm-lyrics)\n\n`compile 'com.xwray:passwordview:1.0'`\n\n### Drop-in Android password view for the new material design spec\n    \u003ccom.xwray.passwordview.PasswordView\n      android:layout_width=\"match_parent\"\n      android:layout_height=\"wrap_content\"\n      android:hint=\"@string/password_hint\" /\u003e\n\n\u003cimg src=\"http://i.imgur.com/k6McHxN.png\" width=\"400px\" /\u003e\u003cimg src=\"http://i.imgur.com/oO3jBPP.png\" width=\"400px\" /\u003e\n\n### Toggle password visibility\nTouch the \"eye\" icon to toggle between traditional and visible password states.\n\n### Custom typeface support\nIn 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.\n\n`passwordView.setTypeface(roboto);`\n\n### Optional strikethrough\nBy 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.\n\nIf you find opacity too subtle (insert eye roll :eyes:), you can use the visibility icon with a strikethrough instead.\n(idea credit, [@thekeeperofpie](https://github.com/TheKeeperOfPie))\n\n`app:useStrikeThrough=\"true\"` /  `passwordView.setUseStrikethrough(true)`\n","funding_links":[],"categories":["表单","Libs"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flisawray%2Fpasswordview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flisawray%2Fpasswordview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flisawray%2Fpasswordview/lists"}