Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/Freshman111/VerificationCodeView

VerificationCode View
https://github.com/Freshman111/VerificationCodeView

Last synced: about 1 month ago
JSON representation

VerificationCode View

Awesome Lists containing this project

README

        

# VerificationCodeView
VerificationCode View

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

## App Preview
![](art/verifycode.gif)jpgjpg

代码原理以及说明请看这一篇博客:
[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