diff --git a/README.md b/README.md index 1479ebe..39e0920 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,115 @@ # VerificationCodeView Android 自定义方形输入框,仿滴滴验证码、小篮单车验证码输入框 + +##效果图 +![Screenshot](screenshot/screenshot.gif) + +GIF被压缩的有点模糊,下面是截图 + +![Screenshot](screenshot/screenshot_1.jpg) + +--- +##用法 +所有属性 + +``` + +``` +输入完成监听 +``` +verificationcodeview.setOnCodeFinishListener(new VerificationCodeView.OnCodeFinishListener() { + @Override + public void onComplete(String content) { + textView.setText(content); + } + }); +``` +所有属性 +``` + + + + + + + + + + + + + + + + + + + + + +``` +vcv_et_bg 背景示例(默认) +``` + + + + + + + + + + + + + + + + + + + +``` +vcv_et_cursor 光标示例(默认) +``` + + + + + +``` + + +## Gradle +Step 1. Add it in your root build.gradle at the end of repositories: + +``` +allprojects { + repositories { + ... + maven { url 'https://jitpack.io' } + } +} +``` + +Step 2. Add the dependency + +``` +dependencies { + compile 'com.jyn.verificationcodeview:verificationcodeview:1.0.0' + +} +``` \ No newline at end of file diff --git a/screenshot/screenshot.gif b/screenshot/screenshot.gif new file mode 100644 index 0000000..c6fea65 Binary files /dev/null and b/screenshot/screenshot.gif differ diff --git a/screenshot/screenshot_1.jpg b/screenshot/screenshot_1.jpg new file mode 100644 index 0000000..5e7bbe6 Binary files /dev/null and b/screenshot/screenshot_1.jpg differ diff --git a/simple/build.gradle b/simple/build.gradle index d94c50e..ecb61c1 100644 --- a/simple/build.gradle +++ b/simple/build.gradle @@ -25,5 +25,6 @@ dependencies { testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.1' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' +// compile 'com.jyn.verificationcodeview:verificationcodeview:1.0.0' implementation project(':verificationcodeview') }