Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Freshman111/VerificationCodeView
VerificationCode View
https://github.com/Freshman111/VerificationCodeView
Last synced: about 1 month ago
JSON representation
VerificationCode View
- Host: GitHub
- URL: https://github.com/Freshman111/VerificationCodeView
- Owner: Freshman111
- License: mit
- Created: 2016-12-06T06:34:37.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-27T04:09:56.000Z (over 7 years ago)
- Last Synced: 2024-08-02T01:25:31.081Z (4 months ago)
- Language: Java
- Homepage:
- Size: 732 KB
- Stars: 388
- Watchers: 9
- Forks: 56
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-github-android-ui - VerificationCodeView - 动态生成验证码 (其他)
README
# VerificationCodeView
VerificationCode View可用于动态生成验证码,常见于金融类app
## App Preview
![](art/verifycode.gif)代码原理以及说明请看这一篇博客:
[Android实现动态验证码的技术调研与实现](http://blog.csdn.net/dreamsever/article/details/53467708)建议将宽高比设置为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](https://github.com/jineshfrancs/CaptchaImageView)
##License
MIT