-
Notifications
You must be signed in to change notification settings - Fork 921
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CircleProgress start angle #51
Comments
Hi guyzk, try android:rotation attribute. It works great in DonutProgress. So, I think it should also work with CircleProgress as well. |
That rotates the text inside too. Is there some other solution? |
One way could be to set the progress as (100 - required progress). And change the finished_color and unfinished_color appropriately. For example, if you want to display 20% progress, set the progress to 80% and swap the colors for finished and unfinished progress. |
@nish-d, I agree it rotates the text inside too, But I have solved that one by putting an attribute of custom:circle_text_color="@android:color/transparent",that makes the default text to transparent(i.e that user can not see) and then I put my own textview inside the progressbar using the framelayout. so its override the default rotated text, so user can see only the our textview which is inside the framelayout.
Hope this helps you. |
This is certainly an innovative solution. Also I just found out there is a method, setStartingDegree(), that does the same. |
@lzyzsd I see But this is not available in Related Issues |
@amardeshbd please use jitpack.io, I havent update mvn center for a long time |
Is it possible to modify the CircleProgress to start from the top instead of from a 90 degree angle
The text was updated successfully, but these errors were encountered: