1. Are you ready for the Galaxy S20? Here is everything we know so far!

Problem with ProgressBar in ListActivity

Discussion in 'Android Development' started by BlackDragonFun, May 18, 2011.

  1. BlackDragonFun

    Thread Starter

    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 (Text):
    2. <ProgressBar android:id="@+id/progress_bar" android:layout_width="wrap_content" android:layout_height="wrap_content"
    3.            android:layout_gravity="center_vertical|center_horizontal" android:indeterminate="true"/>

    1. Download the Forums for Android™ app!



Share This Page