[Galaxy 3 Themes and Apps] patelkishan1985:
ICS PROGRESS BAR FOR FROYO ​

CREDITS : TOXIC77 FOR ORGINALLY MAKING THIS GUIDE.

NOW WITHOUT WASTING TIME . COMMING DIRECTLY ON THE TUTO.

NOTE: THIS IS PERFECTLY WORKING IF YOU FOLLOW THIS CORRECTLY.

REQUIREMENTS: apktool

java sdk

android sdk

notepad++

brain

and little time .......

This is a simple guide of porting the ICS style progress_indeterminate_horizontal_holo to FROYO.

The progress bar animation when downloading and installing applications on android.

Change from this

TO THIS

Now decompile your framework-res.apk using apktool .

you will get many files out of it.

File to be edited:

framework-res\res\drawable\progress_indeterminate_horizontal.xml

Open it with notepad++ and paste this line of code:

<?xml version="1.0" encoding="utf-8"?>
<animation-list android:oneshot="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:duration="50" android:drawable="@drawable/progressbar_indeterminate_holo1" />
<item android:duration="50" android:drawable="@drawable/progressbar_indeterminate_holo2" />
<item android:duration="50" android:drawable="@drawable/progressbar_indeterminate_holo3" />
<item android:duration="50" android:drawable="@drawable/progressbar_indeterminate_holo4" />
<item android:duration="50" android:drawable="@drawable/progressbar_indeterminate_holo5" />
<item android:duration="50" android:drawable="@drawable/progressbar_indeterminate_holo6" />
<item android:duration="50" android:drawable="@drawable/progressbar_indeterminate_holo7" />
<item android:duration="50" android:drawable="@drawable/progressbar_indeterminate_holo8" />
</animation-list>

Additional Note:Edit your Styles.xml.

open it with notepad++

And copy this attributes to it, search for <style name="Widget.ProgressBar.Horizontal" & Widget.SeekBar

now copy this code and paste it for whole widget.progressbar.horizontal code.

<style name="Widget.ProgressBar.Horizontal" parent="@style/Widget.ProgressBar">
<item name="maxHeight">16.0dip</item>
<item name="indeterminateOnly">false</item>
<item name="indeterminateDrawable">@drawable/progress_indeterminate_horizontal</item>
<item name="progressDrawable">@drawable/progress_horizontal</item>
<item name="minHeight">16.0dip</item>
</style>

and for WIDGET.SEEKBAR paste this code :

<style name="Widget.SeekBar" parent="@style/Widget">
<item name="focusable">true</item>
<item name="maxHeight">13.0dip</item>
<item name="indeterminateOnly">false</item>
<item name="indeterminateDrawable">@drawable/progress_horizontal</item>
<item name="progressDrawable">@drawable/progress_horizontal</item>
<item name="minHeight">13.0dip</item>
<item name="thumb">@drawable/seek_thumb</item>
<item name="thumbOffset">16.0dip</item>
</style>

After it save the file place the files from the zip file to your desired drawable folder, on mine I used drawable-mdpi, and using apktool just compile your framework-res again.

Now open your framework-res folder and navigare to BUILD/APK/ now copy the "res" and "resources.arsc"

and paste it in your orginal framework-res.apk file using 7-zip .

now copy that to your /system/framework.

If you liked my post, just press the. THANKS button:good:.