Ok so I have a countdown timer of 15 seconds that works perfectly fine and I'd like to make a custom circular progress bar for that timer.
I want to create a full circle that gets "slices of the pie (circle)" taken out as the timer goes down until there is no longer a circle.
I'd prefer to make the shapes myself than use pre-made images because I'd like the quality to be good on any phone. How would I go about this? Thanks!
I found this example very good: http://mrigaen.blogspot.it/2013/12/create-circular-progress-bar-in-android.html
So I created my progress bar in this way
Then I made a function for the countdown where:
UPDATE
For creating custom components, please check Android API Guide. Excerpt for Basic Approach:
Also, check Todd Davies' Progress Wheel at https://github.com/Todd-Davies/ProgressWheel, this should get you started.
Smooth circle progress bar timer
XML Layout:
activity_main
Drawable file:
circleshape2_timerview
circleshape1_timerview
circleshape_timerview
Activity:
MainActivity