我正在尝试在Countdown timer
项目中使用TextView
Android studio
。我一直在看其他帖子,但我还没有获得任何好的信息。我希望最简单的方式轻松Countdown timer
。提前谢谢!
倒数计时器:
CountDownTimer Count = new CountDownTimer(5000, 1000) {
@Override
public void onTick(long millisUntilFinished) {
timerText.setText("Seconds remaining: " + ((millisUntilFinished/ 1000) ));
}
@Override
public void onFinish() {
timerText.setText("Time Done...");
}
};
Count.start();