{"id":13645547,"url":"https://github.com/Freshman111/VerificationCodeView","last_synced_at":"2025-04-21T14:31:35.467Z","repository":{"id":216295441,"uuid":"75702172","full_name":"Freshman111/VerificationCodeView","owner":"Freshman111","description":"VerificationCode View","archived":false,"fork":false,"pushed_at":"2017-07-27T04:09:56.000Z","size":750,"stargazers_count":387,"open_issues_count":2,"forks_count":56,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-11-09T18:43:01.252Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Freshman111.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-12-06T06:34:37.000Z","updated_at":"2024-11-02T04:47:00.000Z","dependencies_parsed_at":"2024-01-09T13:49:43.605Z","dependency_job_id":"7644a30b-01c0-4bfe-a4fb-4ec56652247a","html_url":"https://github.com/Freshman111/VerificationCodeView","commit_stats":null,"previous_names":["freshman111/verificationcodeview"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freshman111%2FVerificationCodeView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freshman111%2FVerificationCodeView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freshman111%2FVerificationCodeView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freshman111%2FVerificationCodeView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Freshman111","download_url":"https://codeload.github.com/Freshman111/VerificationCodeView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250070173,"owners_count":21369839,"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:37.013Z","updated_at":"2025-04-21T14:31:35.158Z","avatar_url":"https://github.com/Freshman111.png","language":"Java","readme":"# VerificationCodeView\nVerificationCode View\n\n\n可用于动态生成验证码，常见于金融类app\n\n## App Preview\n![](art/verifycode.gif)\u003cimg src=\"art/01AA66503EDA243791DA1EBDA7360454.jpg\" width=\"360\" height=\"640\" alt=\"jpg\"/\u003e\u003cimg src=\"art/260F366BAC6DC71A05DFA8154A4A411E.png\" width=\"360\" height=\"640\" alt=\"jpg\"/\u003e\n\n代码原理以及说明请看这一篇博客：\n[Android实现动态验证码的技术调研与实现](http://blog.csdn.net/dreamsever/article/details/53467708)\n\n建议将宽高比设置为5:2，如果不是5:2现在会按照5:2的比例居中显示到控件\n\n\nusage\n\n```\n\u003csgffsg.com.verifycodeview.VerificationCodeView\n    android:id=\"@+id/verifycodeview\"\n    android:layout_alignParentRight=\"true\"\n    android:layout_width=\"100dp\"\n    android:layout_height=\"40dp\" /\u003e\n\n```\n\n```\nverificationCodeView.setOnClickListener(new View.OnClickListener() {\n    @Override\n    public void onClick(View view) {\n        edit_input.setText(\"\");\n        verificationCodeView.refreshCode();\n    }\n});\n\n```\n\n####请求网络验证码时\n\n```\n\u003csgffsg.com.verifycodeview.VerificationCodeView\n    android:id=\"@+id/net_verifycodeview\"\n    android:layout_width=\"100dp\"\n    android:layout_height=\"40dp\"\n    android:visibility=\"gone\"\n    app:isNetCode=\"true\"/\u003e\n```\n\n\nThanks\n\n[CaptchaImageView](https://github.com/jineshfrancs/CaptchaImageView)\n\n\n##License\nMIT","funding_links":[],"categories":["其他"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFreshman111%2FVerificationCodeView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FFreshman111%2FVerificationCodeView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFreshman111%2FVerificationCodeView/lists"}