[Samsung Galaxy Nexus] erishasnobattery:
New to BAMF Paradigm 1.2 are Battery Skins. These are only the first step to a much larger and more complete theme system that we will be rolling out very soon. Consider them a preview of what's coming for the end user and a set of training wheels for themers so they can get a feel for how the system works.

The primary goal here was ease of use for everyone (except us of course, as it was rather painful to code). I've made up a couple of simple scripts that handle the most difficult parts, but you'll still need to make a few text edits by hand to get things working as intended. On to the good stuff....

Before we begin, the only pre-requisite is that you must have the Java JDK installed and added to your PATH. Download for Windows

Download the template zip for your machine of choice (Windows or Linux)

Extract the zip to a directory of your choosing that is easily accessible

I recommend you make a backup up the original Template Folder at this point in case you hose it somehow.

Open up "AndroidManifest.xml".

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.bamf.skin.batterypack.BatteryTemplate"
android:versionCode="1"
android:versionName="1.0" >

Replace ".BatteryTemplate" with the desired package name of your Battery Skin. Please note, there can be no spaces or special characters and this name must be unique. If this is not the first version of your skin, you will need to increment both versionCode and versionName to allow for the apk to update itself.

Navigate to "res/values" and open up "strings.xml".

<resources>
<string name="app_name">Battery Template</string>
</resources>

Replace "Battery Template" with the desired name of your Battery Skin. This can contain spaces, but I recommend you avoid special charaters.

Navigate to "res/drawable" and replace "preview.png" and "ic_launcher.png" with your own. This image should be a higher resolution if possible as it is displayed larger than regular icons.

Now, navigate to "res/drawable-xhdpi" and simply replace all of the images with your own. Make sure not to add or remove any.

Optional: Navigate to "res/values" and open up "config.xml".

<resources>
<integer name="config_batteryPaddingTop">0</integer>
<integer name="config_batteryPaddingLeft">0</integer>
<integer name="config_batteryPaddingRight">0</integer>
<integer name="config_batteryPaddingBottom">0</integer>
</resources>

Here, you can set padding for the battery text if it needs to be off center in any direction. (A good example of this is the included Gauge Style Battery.)

Double click "script.bat" in Windows or "script" in Linux. Note for Linux: You may need to run "chmod a+x script" to make the script executable.

Once it finishes, you should have a compiled apk that can be installed like any other. Make sure you test it out before releasing to the masses!

A couple of things to remember:

There should be no reason to ever edit the battery xmls in "res/drawable". If you do, it may have undesired consequences.

Try to make sure your name is unique. Add your own personal touch or something so there's not 37 "HoneyCombRed" batteries.

DO NOT add text to your batteries. We handle this ourselves in code.

Only a single charging indicator is needed. We also handle this in code.

Feel free to ask any questions or make suggestions. The entire skin system will be a constant work in progress for the next few releases.

Linux Template

Windows Template