Reputation: 770
I need to create striped progress bar in android.How to create a one like below.
I saw the example on bootstrap but i don't know how to implement that in my app.
Upvotes: 4
Views: 5413
Reputation: 13153
Well you may wish to try this Bootstrap Progress Bar ,
and use app:striped="true"
like below
<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"
/>
Please follow the guild lines given by them.
dependencies {
compile 'com.beardedhen:androidbootstrap:{X.X.X}'
}
{X.X.X}
= latest library version which is 2.3.1
More over
You should also override your application class with the following:
public class SampleApplication extends Application {
@Override public void onCreate() {
super.onCreate();
TypefaceProvider.registerDefaultIconSets();
}
}
and it works for me!
Given example was the default one and it won't work unless you change the app:progress="78"
to app:bootstrapProgress="78"
.
Upvotes: 4