[Android Themes] 10tonhammr:
This is a mod I put together to animate the dock background in Launcher Pro.​

I am not responsible for any damage you may do to your device/important data by following the instructions in this thread. Always back up all your important data before modding/flashing anything on your device.​

If you like my work, please press the "Thanks" button and/or consider donating to me.​

A few notes:

-(UPDATE) I changed the instructions to include implementing the mod in landscape mode.

-I didn't put a whole lot of effort into the actual animation seen below. I put it together just as an example for the mod. If you like it, sweet, but I figured people are gonna want to make their own to fit their needs. I'll also be making some more polished animations and posting them here as they are completed.

- If you make your own animation and would like to share it, PM me or post it in this thread and I will add it to the O.P with credit to the creator.

-To enable the animation, switch to Launcher Pro after installation and go to: menu-> preferences-> appearance settings-> dock background-> select "Froyo", or whatever name you changed it to during the mod.

-The animation will

not

play the first time it loads! From the Laucher Pro home screen: press the "Home" soft key to bring up the screen preview window, then press "Back" and the animation should start playing.

-Right now, this is only for Launcher Pro. I am trying to get this working on Go Launcher Ex and ADW Launcher as well. I will update the O.P as progress is made.

-"Adb install" will not work. Flash the modded apk through CWR to install it.

-This is compatible with Launcher Pro Plus. However, this will

not

unlock Launcher Pro Plus widgets. You gotta pay to get those.

-I tested this on my Captivate without any performance issues, but it runs even better on dual core devices. The lag/choppiness in the video preview is from the low framerate of Shootme's screen caster function.

[YOUTUBE]QzviWfiCtzA[/YOUTUBE]

Start with a clean, unmodded copy of Launcher Pro. Download it from the market if you don't have it already, and use "adb pull" to extract it. The LP apk attached below is a heavily themed version from my Dark Fire Blue theme- feel free to use it if you don't mind the additional themeing and the demo animation, or to use it as a template when applying the mod to the stock apk.

1. Decompile the apk using Apk Manager (or your preffered method.)

Go to: projects\com.fede.launcher-1.apk\res\drawable-port-hdpi

Add all of your dock animation images to this folder. Name the images "dock_animationX" with X being the image number- 0,1,2,3 ect. Save them as .png files.

So far, I've gone up to 20 images (0-19) and have not noticed any additional lag, so you can probably use more than that if you want. I would suggest optimizing the images to reduce the file size.

2. Go to: projects\com.fede.launcher-1.apk\res\drawable-port\dock_background_froyo.xml

Change the code to this:

<?xml version="1.0" encoding="utf-8"?>
<animation-list android:oneshot="false" android:visible="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:duration="75" android:drawable="@drawable/dock_animation0" />
<item android:duration="75" android:drawable="@drawable/dock_animation1" />
<item android:duration="75" android:drawable="@drawable/dock_animation2" />
<item android:duration="75" android:drawable="@drawable/dock_animation3" />
<item android:duration="75" android:drawable="@drawable/dock_animation4" />
<item android:duration="75" android:drawable="@drawable/dock_animation5" />
<item android:duration="75" android:drawable="@drawable/dock_animation6" />
<item android:duration="75" android:drawable="@drawable/dock_animation7" />
<item android:duration="75" android:drawable="@drawable/dock_animation8" />
<item android:duration="75" android:drawable="@drawable/dock_animation9" />
<item android:duration="75" android:drawable="@drawable/dock_animation10" />
<item android:duration="75" android:drawable="@drawable/dock_animation11" />
<item android:duration="75" android:drawable="@drawable/dock_animation12" />
<item android:duration="75" android:drawable="@drawable/dock_animation13" />
<item android:duration="75" android:drawable="@drawable/dock_animation14" />
<item android:duration="75" android:drawable="@drawable/dock_animation15" />
<item android:duration="75" android:drawable="@drawable/dock_animation16" />
<item android:duration="75" android:drawable="@drawable/dock_animation17" />
<item android:duration="75" android:drawable="@drawable/dock_animation18" />
<item android:duration="75" android:drawable="@drawable/dock_animation19" />
</animation-list>

Adjust the android:duration="XX" value to change the speed of the animation. If you have more than 20 images, keep adding lines in sequential order to accommodate all of your animation images. If you have fewer than 20, delete the excess lines. Close and save the file.

3. (Optional) The next two steps are for applying the dock animation mod in landscape mode. If you don't care about that, skip to step 5.

Copy all of your dock animation images to a new folder on your desktop. Open them in photoshop, gimp, ect. and rotate each image 90 degrees counter clockwise. Save and close.

Rename all of the new vertical images to: vdock_animationXX (again, XX being your image number).

Go to: projects\com.fede.launcher-1.apk\res\drawable-land-hdpi

Add all of your vertical dock animation images to this folder.

4. Go to: projects\com.fede.launcher-1.apk\res\drawable-land\dock_background_froyo.xml

Change the code to this:

<?xml version="1.0" encoding="utf-8"?>
<animation-list android:gravity="fill_vertical|right|center" android:oneshot="false" android:visible="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:duration="75" android:drawable="@drawable/vdock_animation0" />
<item android:duration="75" android:drawable="@drawable/vdock_animation1" />
<item android:duration="75" android:drawable="@drawable/vdock_animation2" />
<item android:duration="75" android:drawable="@drawable/vdock_animation3" />
<item android:duration="75" android:drawable="@drawable/vdock_animation4" />
<item android:duration="75" android:drawable="@drawable/vdock_animation5" />
<item android:duration="75" android:drawable="@drawable/vdock_animation6" />
<item android:duration="75" android:drawable="@drawable/vdock_animation7" />
<item android:duration="75" android:drawable="@drawable/vdock_animation8" />
<item android:duration="75" android:drawable="@drawable/vdock_animation9" />
<item android:duration="75" android:drawable="@drawable/vdock_animation10" />
<item android:duration="75" android:drawable="@drawable/vdock_animation11" />
<item android:duration="75" android:drawable="@drawable/vdock_animation12" />
<item android:duration="75" android:drawable="@drawable/vdock_animation13" />
<item android:duration="75" android:drawable="@drawable/vdock_animation14" />
<item android:duration="75" android:drawable="@drawable/vdock_animation15" />
<item android:duration="75" android:drawable="@drawable/vdock_animation16" />
<item android:duration="75" android:drawable="@drawable/vdock_animation17" />
<item android:duration="75" android:drawable="@drawable/vdock_animation18" />
<item android:duration="75" android:drawable="@drawable/vdock_animation19" />
</animation-list>

This xml should be exactly the same as the drawable-port\dock_background_froyo.xml, just with the addition of the android:gravity="fill_vertical|right|center" code in line #2, and the vdock file names. Save and close.

5. (Optional) This will change the text string in the settings menu to a different name for your new animated dock background. It is totally unnecessary for the mod to work, but it does make it look more official. :D

Go to: projects\com.fede.launcher-1.apk\res\values\arrays.xml

Look for this code:

<string-array name="dock_background_entries">
<item>None</item>
<item>Custom</item>
<item>Glass</item>
[COLOR="Red"]<item>Froyo</item>[/COLOR]
<item>Froyo wide</item>
</string-array>

Change "Froyo" to whatever name you want- in the video above I changed the name to Blue Orbs. Save the changes and close this file. The mods are now finished.

6. Recompile the apk.

When you get prompted with: "Is this a system apk?" choose Yes. "Keep unmodified files?" choose Yes. When prompted, navigate to the keep folder and delete: the ENTIRE "res" folder and the "resources.arsc" file. Return to the Apk Manager script and finish compiling the apk. If you get an error, double check all of your file names for the images and xmls and make sure they are consistent.

7. Rename the modded, reccompiled apk to: com.fede.launcher-1.apk.

DO NOT RESIGN THE APK!!

Resigning it will break compatibility with Frederico's keys and the LPP Unlocker app from the market will not work.

8. Add the apk to a CWM flashable file, flash it, and enjoy. :D

If you like my work, please press the "Thanks" button and/or consider donating to me.​

Downloads:

Themed Launcher Pro Apk w/ Blue Orb Dock Animation

CWM Flashable Animated Dock Launcher Pro (Install script may not work for all devices/recoveries.)