MyGit

jineshfrancs/CaptchaImageView

Fork: 81 Star: 611 (更新于 2024-09-05 14:41:28)

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-08-04 18:41:57)

2017-01-04 20:54:35 1.0

主题(topics):

captcha, captcha-image, custom-imageview

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

2024-10-03 23:03:18 Eanya-Tonic/CCTV_Viewer

2024-10-02 13:21:56 apache/dubbo

2024-10-01 06:18:31 testcontainers/testcontainers-java

2024-10-01 04:58:51 dromara/dante-cloud

2024-09-30 11:39:09 PBH-BTN/PeerBanHelper

2024-09-26 18:06:25 bifromqio/bifromq