Swipe captcha of Android platform. Android 平台的滑动验证码。
Swipe captcha of Android platform. Android 平台的滑动验证码。
Swipe captcha of Android platform。 Android 平台的滑动验证码。
在 Android端app上,自定义View,仿一个斗鱼web端滑动验证码。 博文:http://blog.csdn.net/zxt0601/article/details/53315975
Step 1. Add the JitPack repository to your build file 在项目根build.gradle文件中增加JitPack仓库依赖。
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}Step 2. Add the dependency
dependencies {
compile 'com.github.mcxtzhang:SwipeCaptcha:V1.0.0'
}Step 3.
那么本控件包含不仅包含以下功能:
分解一下验证码核心实现思路:
onSizeChanged()方法中生成 和 控件宽高相关的属性值:
1 初始化时随机生成验证码区域起点
2 生成验证码区域Path
3 生成滑块BitmaponDraw()时,依次绘制:
1 验证码阴影
2 滑块abstract dragbar(seekbar) interface
SwipeCaptcha inside to hold the interface to do something
抽象拖动条接口
SwipeCaptcha内部要持有这个接口 做一些事情
No open issues yet, or sync has not completed.