update readme

This commit is contained in:
jiaoyaning
2019-08-09 10:33:56 +08:00
parent 21491dbb2a
commit a9287bfe03
2 changed files with 23 additions and 14 deletions

Binary file not shown.

View File

@@ -1,16 +1,18 @@
# VerificationCodeView # VerificationCodeView
Android 自定义方形输入框,仿滴滴验证码、小篮单车验证码输入框 > `Android` 自定义方形输入框,仿滴滴验证码、小篮单车验证码输入框
---
## 效果图 ## 效果图
## V1.0.1版 ## V1.0.1
![Screenshot](screenshot/screenshot_1.0.1.gif) ![Screenshot](screenshot/screenshot_1.0.1.gif)
fix bug : [验证码输入错误清空输入框 #7](https://github.com/jiaoyaning/VerificationCodeView/issues/7) + `fix bug` [验证码输入错误清空输入框 #7](https://github.com/jiaoyaning/VerificationCodeView/issues/7)
fix bug : [关于博主手机不好,经常点一次却触发两次`onKey`事件就设置了一个防止多点击间隔100毫秒。#6](https://github.com/jiaoyaning/VerificationCodeView/issues/6) + `fix bug` [关于博主手机不好,经常点一次却触发两次`onKey`事件就设置了一个防止多点击间隔100毫秒。#6](https://github.com/jiaoyaning/VerificationCodeView/issues/6)
fix bug : 暗文密码模式无效果 + `fix bug` 暗文密码模式无效果问题
update : 添加输入框平分等间距模式,并可设置输入框间距 + `update` 添加输入框平分等间距模式,并可设置输入框间距
update :添加清空输入框方法 + `update` :添加清空输入框方法
update 添加文本改变回调 + `update` :修改`Listener`添加文本改变回调方法
### 监听 ### 监听
``` ```
@@ -52,30 +54,37 @@ public interface OnCodeFinishListener {
<attr name="vcv_et_cursor" format="reference" /> <attr name="vcv_et_cursor" format="reference" />
<!--是否隐藏光标--> <!--是否隐藏光标-->
<attr name="vcv_et_cursor_visible" format="boolean" /> <attr name="vcv_et_cursor_visible" format="boolean" />
<!--输入框间距,不输入则代表平分--> <!--输入框间距,如果不设置则会把输入框位置平分-->
<attr name="vcv_et_spacing" format="dimension|reference" /> <attr name="vcv_et_spacing" format="dimension|reference" />
</declare-styleable> </declare-styleable>
``` ```
### Gradle
``` ```
dependencies { dependencies {
implementation 'com.jyn.verificationcodeview:verificationcodeview:1.0.1' implementation 'com.jyn.verificationcodeview:verificationcodeview:1.0.1'
} }
``` ```
---
#### ———————————一只分割线——————————— 分割线
---
## V1.0.0版 (源码在`branch` [[`V1.0.0`]](https://github.com/jiaoyaning/VerificationCodeView/tree/V1.0.0))
## V1.0.0版
![Screenshot](screenshot/screenshot.gif) ![Screenshot](screenshot/screenshot.gif)
GIF被压缩的有点模糊下面是截图 `GIF`被压缩的有点模糊,下面是截图
![Screenshot](screenshot/screenshot.jpg) ![Screenshot](screenshot/screenshot.jpg)
---
## 用法 ## 用法
``` ```
@@ -185,6 +194,6 @@ CSDN[http://blog.csdn.net/jiaoyaning1210/article/details/78427818](http://blo
--- ---
如果对您有帮助的话还请给个star谢谢 如果对您有帮助的话,还请给个`star`,谢谢!
--- ---