Skip to content

Bootstrap Progress Bar

fractalwrench edited this page Jan 8, 2016 · 1 revision

###BootstrapProgressBar See the Sample Code.

This view displays progress in a bar, allowing integer values from 0-100.

<com.beardedhen.androidbootstrap.BootstrapProgressBar
 android:layout_width="wrap_content"
 android:layout_height="wrap_content"
 app:animated="true"
 app:bootstrapBrand="warning"
 app:progress="78"
 app:striped="true"
 />

The color, progress, striping, and animation of updates can be controlled via attributes, as in the XML above. It is also possible to alter these values via setters on the View.

BootstrapProgressBar bar = new BootstrapProgressBar(context);
bar.setProgress(99); // nearly there!
BootstrapProgressBar
Clone this wiki locally