1

I'm trying to draw a indeterminate (circular) progress bar that is white and then fades into purple.

This is my ProgressBar:

<ProgressBar
        android:id="@+id/mainProgressBar"
        style="@style/Widget.AppCompat.ProgressBar"
        android:layout_width="@dimen/progressbar_size"
        android:layout_height="@dimen/progressbar_size"
        android:layout_gravity="center" />

Then I paint it white:

mainProgressBar.getIndeterminateDrawable().setColorFilter(getResources().getColor(R.color.white), PorterDuff.Mode.SRC_ATOP);

Do I need add another ColorFilter? Set a style or theme on the progressbar? No idea what to do here.

Marty Miller
  • 913
  • 2
  • 11
  • 27

1 Answers1

2

DonutProgressView is a configurable doughnut-like graph view capable of displaying multiple datasets with assignable colors. It supports animations and features a gap at the top, which makes it look like a gauge (or tasty bitten-off donut - that's why the name).

Click Here to See Git Lib