Android Material PinInputView
PinInputView是一个Material风格的四位密码输入控件
GitHub
https://github.com/gitzsj/PinInputView
开始使用
buildscript {
repositories {
jcenter()
}
}
dependencies {
implementation 'com.zhaoshiji.pininputview:pininputview:0.0.2'
}
监听接口
密码输入完成监听,该接口会返回输入的内容setOnFullListener(OnFullListener mListener)
取消按钮点击监听setOnCancelClickListener(OnCancelClickListener mListener)
参数设置
设置数字颜色setNumColor(int color)
设置清空按钮颜色setClearButtonColor(int color)
设置取消/退格按钮颜色setCancelButtonColor(int color)
设置输入框颜色setPointColor(int color)
其他接口
输入框抖动效果Error()
清除全部已输入的数字ClearAll()
应用示例
微信清理大师
http://app-update-package.oss-cn-beijing.aliyuncs.com/WeChatCleanUpdateAPK/16.apk