// 60秒重新获取
new CountDownTimer(60000, 1000) {
@Override
public void onTick(long millisUntilFinished) {
btn_send_verifi.setText((millisUntilFinished / 1000)
+ "秒后重新获取");
btn_send_verifi.setEnabled(false);
}
@Override
public void onFinish() {
btn_send_verifi.setText("重新获取验证码");
btn_send_verifi.setEnabled(true);
}
}.start();
时间: 2024-10-08 14:07:11