Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
V

VerificationCodeView

> 编程语言
Open source

VerificationCode View

387 stars0 likes0 views
WebsiteGitHub

About

VerificationCode View

VerificationCodeView

VerificationCode View

可用于动态生成验证码,常见于金融类app

App Preview

代码原理以及说明请看这一篇博客: Android实现动态验证码的技术调研与实现

建议将宽高比设置为5:2,如果不是5:2现在会按照5:2的比例居中显示到控件

usage

verificationCodeView.setOnClickListener(new View.OnClickListener() {
    @Override
    public void onClick(View view) {
        edit_input.setText("");
        verificationCodeView.refreshCode();
    }
});

####请求网络验证码时

Thanks

CaptchaImageView

##License MIT

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Java

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言