uknownothingsnow / CircleProgress

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

Donut Progress start at 12 o'clock #30

Closed omatt closed 9 years ago

omatt commented 9 years ago

Is there any way to set the progress donut to start at 12 o'clock(90°) instead of 3 o'clock(0°)?

nagendraksrivastava commented 9 years ago

I am also looking for the same feature

omatt commented 9 years ago

I just set the color of the progress text into transparent and rotated the DonutProgress view. It's just a workaround and not a pretty implementation.

X4mp commented 9 years ago

I would need the same feature. Is there any chance that you can add a property to set the start of the progress to 12 o'clock(90°)?

omatt commented 9 years ago
<com.github.lzyzsd.circleprogress.DonutProgress
...
android:rotation="270"
custom:donut_text_color="#00000000"/>

This is just a quick fix and not really a good solution. I set the text color to transparent since the text will also be rotated along with the DonutProgress.

X4mp commented 9 years ago

ok thx. Unfortunatelly I need the text, so rotation is not what I need. I created a Pull-Request for this issue. Please review pr #31 and give me some feedback on it.