Android - I need to create a 180 degree graph (half pie chart)

I need to create half a pie chart in Android, I have searched a lot but cannot find a solution. Any idea for a library to do this? Or can I do it manually?

Thanks in advance.

enter image description here

+3


source to share


1 answer


Let s think different ! Actually, we can say it is a custom progress bar. I never done anything like this before, but I would check the source code of the original progress bar. From this code, I could understand who they drawing the

the fill effect "on Android. You need to apply the same code for the half beer bar!

http://grepcode.com/file_/repository.grepcode.com/java/ext/com.google.android/android/5.0.2_r1/android/widget/ProgressBar.java/?v=source



Old post from stackoverflow, I think this might be helpful for a start: Android half-circle progress bar - drawing a half-circle

Good project for learning how it draws: https://github.com/f2prateek/progressbutton?source=c

+5


source







All Articles