private CountDownTimermCountDownTimer =new CountDownTimer(60000,1000) {
@Override
public void onTick(long l) {
textcode.setText((l /1000) +"秒后可重发");
textcode.setClickable(false);
}
@Override
public void onFinish() {
textcode.setEnabled(true);
textcode.setText("获取验证码");
}
};
网友评论