• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Problem with ProgressBar in ListActivity

Hi all,

I have a ListActivity which is populated with a list of views that contains a progressbar (a rotating one). I've set the indeterminate flag so that it always spins. However when the progressbar goes out of view because you have scrolled down the list, it stops spinning.

Am I forgetting to set something somewhere to ensure it is always spinning?

Here's is the progressbar definition in a layout XML file:

Code:
<ProgressBar android:id="@+id/progress_bar" android:layout_width="wrap_content" android:layout_height="wrap_content" 
	       android:layout_gravity="center_vertical|center_horizontal" android:indeterminate="true"/>
 
Back
Top Bottom