Reputation: 2187
I want a infinite progress bar like here under Activity Indicatior, Activity bar
My implementation is not animated and not spinning. What is wrong? Thanks
<ProgressBar
android:id="@+id/progressBar"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
Upvotes: 7
Views: 9236
Reputation: 993
here's my xml, it works fine:
<ProgressBar android:id="@+id/progressBar1" style="?android:attr/progressBarStyleLarge" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" android:layout_centerVertical="true" />
Upvotes: 1
Reputation: 7371
Add android:indeterminate="true"
to your xml - that should fix it.
Upvotes: 14