android中提供了一个类:CountDownTimer,可以实现倒计时的功能。代码如下:
在需要使用倒计时功能的activity中,自定义一个 TimeCount 类继承 CountDownTimer
public class TimeCount extends CountDownTimer { /** * @param millisInFuture The number of millis in the future from the call * to { @link
android中提供了一个类:CountDownTimer,可以实现倒计时的功能。代码如下:
在需要使用倒计时功能的activity中,自定义一个 TimeCount 类继承 CountDownTimer
public class TimeCount extends CountDownTimer { /** * @param millisInFuture The number of millis in the future from the call * to { @link