Android的CountDownTimer - 增加或减少计数 [英] Android's CountDownTimer - increase or decrease the count

查看:108
本文介绍了Android的CountDownTimer - 增加或减少计数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是Android的 CountDownTimer 类做出coutndown计时器。我不得不承认,这是相当困难的,我理解正确的话,其他的解决办法是使用定时器来代替,但没有人知道我怎么能减少或增加countdowntimer的10秒一个例子吗?

I'm using Android's CountDownTimer class to make a coutndown timer. I have to admit that it's rather difficult for me understand it correctly, other solution would be to use timer instead, but does anyone know how can I decrease or increase the countdowntimer's by 10 seconds for an example?

推荐答案

取消当前正在运行的定时器并开始另一个。

Cancel the current running timer and start another one.

这篇关于Android的CountDownTimer - 增加或减少计数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆