1、倒计时
countDownTimer = new CountDownTimer(10 * 1000 + 300, 1000) {
@Override
public void onTick(long millisUntilFinished) {
if (!activity.isFinishing()) {
view.showTime((int) (millisUntilFinished / 1000));
}
}
@Override
public void onFinish() {
if (!activity.isFinishing()) {
view.showTime(0);
}
}
网友评论