jineshfrancs/CaptchaImageView
Fork: 81 Star: 611 (更新于 2024-11-22 23:41:59)
license: Apache-2.0
Language: Java .
Custom ImageView to generate captcha image.
最后发布版本: 1.0 ( 2017-01-04 20:54:35)
CaptchaImageView
Custom ImageView to generate captcha image.
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-22 14:41:49 dromara/dante-cloud
2024-11-21 20:32:01 spring-projects/spring-boot
2024-11-21 09:44:43 Card-Forge/forge
2024-11-20 14:38:43 StarRocks/starrocks
2024-11-19 23:42:52 spring-projects/spring-authorization-server
2024-11-18 21:40:12 4379711/lol-helper