0

I would like to implement something like the one described here while avoiding the use of a library

How to create circular ProgressBar in android?

I tried this way, which seemed to work fine for most people:

How to create circular ProgressBar in android?

My only problem (2 problems):

  • Can't get round edges (like the ones in the question's picture) because has no effect on ring shape
  • What if I want to make a non-full circle?

Can I achieve my goal using just XML? (no Canvas, no custom view)

asd88
  • 3
  • 5
  • no, you cannot do that using xml only: you have to use a custom `Drawable` class and `Cnavas` API – pskink May 22 '19 at 09:18
  • @pskink why should I use a Drawable? – asd88 May 22 '19 at 09:26
  • because you need it for [ProgressBar.setProgressDrawable()](https://developer.android.com/reference/android/widget/ProgressBar.html#setProgressDrawable(android.graphics.drawable.Drawable)) method – pskink May 22 '19 at 09:27

0 Answers0