Description
Small library allowing you to make a smooth indeterminate progress bar. You can either user your progress bars and set this drawable or use directly the SmoothProgressBarView.
Live Demo
https://play.google.com/store/apps/details?id=fr.castorflex.android.smoothprogressbar.sample
Integration
The lib is now on Maven Central. All you have to do is add it on your gradle build:
You can find the last stable version on [Gradle Please]
Or you can try the latest snapshots:
If you really want (or have) to use Eclipse, please look at the forks.
Usage
- Use directly SmoothProgressBar:
Or use styles:
You can find more styles [in the sample app][Sample Themes]
- Or instantiate a
SmoothProgressDrawable
/CircularProgressDrawable
and set it to your ProgressBar
You can also set many colors for one bar (see G+ app)
-
via xml (use the
app:spb_colors
attribute with ainteger-array
reference for that) -
programmatically (use
SmoothProgressDrawable.Builder#colors(int[])
method).