MyGit

jineshfrancs/CaptchaImageView

Fork: 81 Star: 612 (更新于 2024-10-31 08:49:41)

license: Apache-2.0

Language: Java .

Custom ImageView to generate captcha image.

最后发布版本: 1.0 ( 2017-01-04 20:54:35)

GitHub网址

CaptchaImageView

Github All Releases Android Arsenal

Custom ImageView to generate captcha image.

Output sample Output sample

Add CaptchaImageView to your layout

 <test.jinesh.captchaimageviewlib.CaptchaImageView
            android:layout_width="wrap_content"
            android:id="@+id/image"
            android:layout_weight="6"
            android:layout_margin="5dp"
            android:layout_height="50dp"
            />

Call regenerate() method on CaptchaImageView to regenerate your captcha

 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.

 captchaImageView.getCaptchaCode()

Use in your project

1.Add it in your root build.gradle at the end of repositories:

	allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}

2.Add the dependency in your app build.gradle file:

dependencies {
	        compile 'com.github.jineshfrancs:CaptchaImageView:1.0'
}

最近版本更新:(数据更新于 2024-10-09 13:59:46)

2017-01-04 20:54:35 1.0

主题(topics):

captcha, captcha-image, custom-imageview

jineshfrancs/CaptchaImageView同语言 Java最近更新仓库

2024-11-13 09:30:15 Tornaco/Thanox

2024-11-12 09:59:10 mybatis-flex/mybatis-flex

2024-11-11 23:58:45 PBH-BTN/PeerBanHelper

2024-11-10 07:12:10 Stirling-Tools/Stirling-PDF

2024-11-08 23:15:38 yuliskov/SmartTube

2024-11-08 05:44:55 jmdns/jmdns