[Android General] ibanez7:
how to make transparancy on Gingerbread (Following wallpaper)

Due some people are sending a private message to me about how to make transparancy on Gingerbread (Following wallpaper), so I decided to make a little guide of my work at the time still using Gingerbread on my device :

Preparation :

- Any apktool (recommended to use apktool on this thread)

- Framework-res.apk

- Twframework-res.apk (only for samsung gingerbread rom)

1. The first, Decompile framework-res.apk

2. Go to res\values\ and open styles.xml using notepad ++

3. Find this line :

<style name="Theme">

And replace these lines with this (especially blue) :

<style name="Theme">
<item name="colorForeground">@color/bright_foreground_dark</item>
<item name="colorBackground">[COLOR="Blue"]@color/transparent[/COLOR]</item>
<item name="windowBackground">[COLOR="Blue"]@drawable/ibanezseven_trans[/COLOR]</item>
<item name="windowShowWallpaper">[COLOR="Blue"]true[/COLOR]</item>

Then scroll down and find this lines (please equate with this) :

<style name="Theme.Translucent" parent="@style/Theme">
<item name="windowBackground">@color/transparent</item>
<item name="windowIsTranslucent">true</item>
<item name="windowAnimationStyle">@style/Animation</item>
<item name="windowShowWallpaper">false</item>
<item name="colorBackgroundCacheHint">@null</item>
</style>

<style name="Theme.Panel" parent="@style/Theme">
<item name="windowBackground">@color/transparent</item>
<item name="windowFrame">@null</item>
<item name="windowNoTitle">true</item>
<item name="windowIsFloating">true</item>
<item name="windowIsTranslucent">true</item>
<item name="windowContentOverlay">@null</item>
<item name="backgroundDimEnabled">false</item>
<item name="windowShowWallpaper">false</item>
<item name="colorBackgroundCacheHint">@null</item>
</style>

<style name="Theme.Light.Panel" parent="@style/Theme.Light">
<item name="windowBackground">@color/transparent</item>
<item name="windowFrame">@null</item>
<item name="windowNoTitle">true</item>
<item name="windowIsFloating">true</item>
<item name="windowIsTranslucent">true</item>
<item name="windowContentOverlay">@null</item>
<item name="backgroundDimEnabled">false</item>
<item name="colorBackgroundCacheHint">@null</item>
</style>

<style name="Theme.Wallpaper" parent="@style/Theme">
<item name="windowBackground">@color/transparent</item>
<item name="windowShowWallpaper">true</item>
<item name="colorBackgroundCacheHint">@null</item>
</style>

</style>
<item name="windowBackground">@color/transparent</item>
<item name="windowIsFloating">true</item>
<item name="windowContentOverlay">@null</item>
<item name="windowTitleStyle">@style/DialogWindowTitle</item>
</style>

<style name="Theme.Dialog.AppError" parent="@style/Theme.Dialog">
<item name="textAppearance">@style/TextAppearance.Theme.Dialog.AppError</item>
<item name="windowBackground">@color/transparent</item>
<item name="windowFrame">@null</item>
<item name="windowIsFloating">true</item>
<item name="windowContentOverlay">@null</item>
<item name="windowTitleStyle">@style/DialogWindowTitle</item>
</style>

<style name="Theme.Dialog.RecentApplications" parent="@style/Theme.Dialog">
<item name="windowBackground">@color/transparent</item>
<item name="windowFrame">@null</item>
<item name="textColor">@color/secondary_text_nofocus</item>
<item name="windowAnimationStyle">@style/Animation.RecentApplications</item>
</style>

3. Save and exit

4. Extract and copy ibanezseven_trans.png to drawable-xxxdpi, for example : drawable-hdpi or drawable-mdpi or drawable-ldpi. (download on attachment)

5. Recompile

6. Then decompile twframework-res.apk

7. Go to res\values\ and open styles.xml using notepad ++

8. Then scroll down and find this lines (please equate with this) :

<style name="TwTheme.Dialog" parent="@style/TwTheme" />
<style name="TwTheme.Dialog.Alert" parent="@style/TwTheme.Dialog">
<item name="android:windowBackground">@*android:color/transparent</item>
<item name="android:windowIsFloating">true</item>
<item name="android:windowContentOverlay">@null</item>
<item name="android:windowTitleStyle">@style/TwDialogWindowTitle</item>
</style>

And :

<style name="TwTheme.Dialog.Clipboard" parent="@*android:style/Theme.Panel">
<item name="android:windowBackground">@*android:color/transparent</item>
<item name="android:windowFrame">@null</item>
<item name="android:windowNoTitle">true</item>
<item name="android:windowIsFloating">true</item>
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowAnimationStyle">@*android:style/Animation.InputMethod</item>
<item name="android:background">@null</item>
<item name="android:backgroundDimEnabled">false</item>
</style>

9. Recompile

10. Last, push back the apk into system your device, manual push using root explorer/similar application or make a flashable zip.