I am working with custom progress bar using indeterminateDrawable
property, code is below, when I removed indeterminateDrawable
property then it shown in center but not shown center with this property. please help me.
<LinearLayout
android:id="@id/android:empty"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="center" >
<ProgressBar
android:id="@+id/workingProgressBar"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_gravity="center"
android:indeterminateDrawable="@drawable/startup_anim"
android:indeterminateOnly="true" />
</LinearLayout>
drawable/startup_anim.xml
<animation-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item
android:drawable="@drawable/animation4"
android:duration="100"/>
<item
android:drawable="@drawable/animation3"
android:duration="100"/>
<item
android:drawable="@drawable/animation2"
android:duration="100"/>
<item
android:drawable="@drawable/animation1"
android:duration="100"/>
<item
android:drawable="@drawable/animation0"
android:duration="100"/>
</animation-list>