M
M
ministry_of_silly_walks2019-08-19 11:09:26
Java
ministry_of_silly_walks, 2019-08-19 11:09:26

What class to use to implement the timer?

I will have a timer counting minutes and seconds. This will not be a completely trivial application, but a real timer with time for training, rest and preparation. At first I used the countdowntimer class, but its behavior is questionable (when the timer is paused and then resumed, it freezes for a decent amount of time in the last second). Using handler seems too strange to me, I don't want to reinvent the wheel. I haven't tried chronometer yet, but I'm going to. Tell me, more experienced colleagues, what is better to use?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2019-08-30
@ministry_of_silly_walks

In android, there is a ValueAnimator for solving such problems https://developer.android.com/guide/topics/graphic...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question