プロジェクト
GitHubで見る
jineshfrancs/CaptchaImageView
概要
CAPTCHA画像を生成するカスタム ImageView。
デザイン・メディア計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- 0
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナル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'
}
関連プロジェクトを探す
読み込み中…