Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jineshfrancs/CaptchaImageView
Custom ImageView to generate captcha image.
https://github.com/jineshfrancs/CaptchaImageView
captcha captcha-image custom-imageview
Last synced: 3 months ago
JSON representation
Custom ImageView to generate captcha image.
- Host: GitHub
- URL: https://github.com/jineshfrancs/CaptchaImageView
- Owner: jineshfrancs
- License: apache-2.0
- Created: 2016-11-25T06:27:14.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-23T13:08:32.000Z (about 7 years ago)
- Last Synced: 2024-08-02T01:20:39.004Z (7 months ago)
- Topics: captcha, captcha-image, custom-imageview
- Language: Java
- Size: 309 KB
- Stars: 612
- Watchers: 13
- Forks: 81
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-github-android-ui - CaptchaImageView - 生成验证码图片的自定义ImageView (ImageView)
- awesome-captcha - jineshfrancs/CaptchaImageView - Custom ImageView dla generowania obrazu CAPTCHA. (Generowanie)
README
# CaptchaImageView
[](https://github.com/jineshfrancs/CaptchaImageView/archive/1.0.zip) [](http://android-arsenal.com/details/1/4719)
Custom ImageView to generate captcha image.
 
Add CaptchaImageView to your layout
```xml
```
Call regenerate() method on CaptchaImageView to regenerate your captcha```java
captchaImageView= (CaptchaImageView) findViewById(R.id.image);
refreshButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
captchaImageView.regenerate();
}
});
```Call getCaptchaCode() method on CaptchaImageView to read last generated captcha code.
```java
captchaImageView.getCaptchaCode()```
Use in your project
------1.Add it in your root build.gradle at the end of repositories:
```gradle
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
```2.Add the dependency in your app build.gradle file:
```gradle
dependencies {
compile 'com.github.jineshfrancs:CaptchaImageView:1.0'
}
```