倒数计时器为Android [英] Countdown timer for android
本文介绍了倒数计时器为Android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经单独的项目进行倒数计时器,它是工作的罚款。现在我不得不申请,在我的比赛。所以,我需要一个建议,其中的计时器应该叫什么名字?在线程,主课堂,我给gameview refernce或在gameview类?
I have made separate project for countdown timer and it is working fine. Now i have to apply that in my game. So i need a suggestion where the timer should be called? In thread, in main class where i am giving gameview refernce or in a gameview class?
推荐答案
由于计时器本身就是一个线程,每个定时器有哪些任务顺序执行一个线程。当这个线程忙于运行任务,可运行的任务可能会延迟。所以,你应该打电话给你的线程的主类
As timer itself is a thread and Each timer has one thread on which tasks are executed sequentially. When this thread is busy running a task, runnable tasks may be subject to delays. So you should call your Thread from the Main class
这篇关于倒数计时器为Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文