Change Android ProgressBar Animation

To change a indeterminate progressbar style animation, simply use this drawable below, and rename it as progress_indeterminate.xml

<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
   <item>
      <rotate android:pivotX="50%" android:pivotY="50%"
         android:fromDegrees="0" android:toDegrees="360"
         android:drawable="@drawable/progress_circular_indeterminate" />
   </item>
</layer-list>

* note the @drawable/progress_circular_indeterminate is pointing to your image file, you can change the name
To apply the Animation simply use this tag in the progress bar

android:indeterminateDrawable="@drawable/progress_indeterminate"

Based on this link about progress dialog and other animation

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s