Files
VercodeEditText/vcedittext-lib/src/main/java/com/jkb/vcedittext/VerificationAction.java
yj c158f81795 Action:alter
Description:修改VercodeEditText控件,修复下划线异常、height无法适配、宽度左右缩进问题;
TODO:修复无法输入bug
2017-06-12 11:05:25 +08:00

63 lines
1.3 KiB
Java

package com.jkb.vcedittext;
import android.support.annotation.ColorRes;
/**
* 填写验证码支持的Action
* Created by yj on 2017/5/11.
*/
interface VerificationAction {
/**
* 设置位数
*/
void setFigures(int figures);
/**
* 设置验证码之间的间距
*/
void setVerCodeMargin(int margin);
/**
* 设置底部选中状态的颜色
*/
void setBottomSelectedColor(@ColorRes int bottomSelectedColor);
/**
* 设置底部未选中状态的颜色
*/
void setBottomNormalColor(@ColorRes int bottomNormalColor);
/**
* 设置选择的背景色
*/
void setSelectedBackgroundColor(@ColorRes int selectedBackground);
/**
* 设置底线的高度
*/
void setBottomLineHeight(int bottomLineHeight);
/**
* 设置当验证码变化时候的监听器
*/
void setOnVerificationCodeChangedListener(OnVerificationCodeChangedListener listener);
/**
* 验证码变化时候的监听事件
*/
interface OnVerificationCodeChangedListener {
/**
* 当验证码变化的时候
*/
void onVerCodeChanged(CharSequence s, int start, int before, int count);
/**
* 输入完毕后的回调
*/
void onInputCompleted(CharSequence s);
}
}