uknownothingsnow / CircleProgress

CircleProgress, DonutProgress, ArcProgress
3.81k stars 921 forks source link

change donut progressbar orientation direction #101

Open engr-erum opened 6 years ago

engr-erum commented 6 years ago

I want to start rotation from top and in anti-clockwise direction. Can someone pls point me to the right direction? I already tried 270 in android:rotation but its not working fine

kagile commented 6 years ago

I have done few changes in DonutProgress.java. Please see this fork. https://github.com/krupalagile/CircleProgress. It will only show clockwise direction progress if clockwise attribute is given true.

Palantir-NR commented 6 years ago

Or you can just apply rotation to xml

kagile commented 6 years ago

@Palantir-NR Applying rotation isn't working.

fauzi2107 commented 6 years ago

if you want to start from top, try this _app:donut_circle_startingdegree="270", but for anti-clockwise i didnt found it

shanxinhu commented 1 year ago

clockWise in DonutProgress is private, i add getter/setter method resolve. maybe a bug at there.