diff --git a/README.md b/README.md index 264cc2d..3899aa3 100644 --- a/README.md +++ b/README.md @@ -2,12 +2,71 @@ Android 自定义方形输入框,仿滴滴验证码、小篮单车验证码输入框 ## 效果图 +## V1.0.1版(上传bintray一直未成功,还在努力) +![Screenshot](screenshot/screenshot_1.0.1.gif) + +fix bug : [验证码输入错误清空输入框 #7](https://github.com/jiaoyaning/VerificationCodeView/issues/7) +fix bug : [关于博主手机不好,经常点一次却触发两次`onKey`事件,就设置了一个防止多点击,间隔100毫秒。#6](https://github.com/jiaoyaning/VerificationCodeView/issues/6) +fix bug : 暗文密码模式无效果 +update : 添加输入框平分等间距模式,并可设置输入框间距 +update :添加清空输入框方法 +update :添加文本改变回调 + +### 监听 +``` +public interface OnCodeFinishListener { + /** + * 文本改变 + */ + void onTextChange(View view, String content); + + /** + * 输入完成 + */ + void onComplete(View view, String content); + } +``` + +### attr +``` + + + + + + + + + + + + + + + + + + + + + + + + + + + +``` + +#### ———————————一只分割线——————————— + +## V1.0.0版 ![Screenshot](screenshot/screenshot.gif) GIF被压缩的有点模糊,下面是截图 -![Screenshot](screenshot/screenshot_1.jpg) +![Screenshot](screenshot/screenshot.jpg) --- ## 用法 diff --git a/screenshot/screenshot_1.jpg b/screenshot/screenshot.jpg similarity index 100% rename from screenshot/screenshot_1.jpg rename to screenshot/screenshot.jpg diff --git a/screenshot/screenshot_1.0.1.gif b/screenshot/screenshot_1.0.1.gif new file mode 100644 index 0000000..85b51ca Binary files /dev/null and b/screenshot/screenshot_1.0.1.gif differ diff --git a/verificationcodeview/src/main/java/com/jyn/vcview/VerificationCodeView.java b/verificationcodeview/src/main/java/com/jyn/vcview/VerificationCodeView.java index 53e8577..63e1e68 100644 --- a/verificationcodeview/src/main/java/com/jyn/vcview/VerificationCodeView.java +++ b/verificationcodeview/src/main/java/com/jyn/vcview/VerificationCodeView.java @@ -415,7 +415,9 @@ public class VerificationCodeView extends LinearLayout implements TextWatcher, V } public interface OnCodeFinishListener { - + /** + * 文本改变 + */ void onTextChange(View view, String content); /**