# 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' } ``` ## 开发思路 简书:[http://www.jianshu.com/p/781950fe5e73](http://www.jianshu.com/p/781950fe5e73) CSDN:[http://blog.csdn.net/jiaoyaning1210/article/details/78427818](http://blog.csdn.net/jiaoyaning1210/article/details/78427818) --- 如果对您有帮助的话,还请给个star,谢谢! ---