[Captivate Themes and Apps] 10tonhammr:
Animated Launcher Pro Dock

Here it is, guys. I finally got the animation working without breaking compatability with the Launcher Pro Plus key.

A few notes:

-I didn't put a whole lot of effort into the actual animation. I put it together just as an example for the mod. I figure people are gonna start making their own.

-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.

-Adb install will not work. I reccommend flashing the modded apk through CWR.

-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 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.

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.

Next, 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.

Optional Step- 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 the 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.

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. 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. Grab the unsignedcom.fede.launcher-1.apk and rename it to: com.fede.launcher-1.apk. FOR THE LOVE OF GOD, 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.

Drop the com.fede.launcher-1.apk into a CWM flashable file, flash it, and enjoy. :D

Themed Launcher Pro Apk w/ Blue Orb Dock Animation

CWM Flashable Animated Dock Launcher Pro

I started a thread for this mod in the Android Themes section. I'm hoping to start a collection of dock animations there as people start messing with it.