Android Circular Timer
10,520
For creating custom components, please check Android API Guide. Excerpt for Basic Approach:
- Extend an existing View class or subclass with your own class.
- Override some of the methods from the superclass. The superclass methods to override start with 'on', for example, onDraw(), onMeasure(), and onKeyDown(). This is similar to the on... events in Activity or ListActivity that you override for lifecycle and other functionality hooks.
- Use your new extension class. Once completed, your new extension class can be used in place of the view upon which it was based.
For create circular progress bar,
check custom library at https://github.com/ylyc/circular_progress_bar, this should get you started.
Some related SO links,
Android Countdown Timer Circular Progress Bar doesn't match with timer
Related videos on Youtube
Author by
Darko Petkovski
Android programmer, who is eager to learn new things and write code
Updated on September 15, 2022Comments
-
Darko Petkovski over 1 year
I want to create a timer that will fill a circle with a certain animation(the ring fills in with a specific color). The effect I want to acheive is this:
Can someone tell me how can I acheive this effect?