[GUIDE]Easily get AOSP taste on your device without modifying much PNGs and layouts
So guys as many OEMs are adding their own sh***y things on their stock ROMs and spoiling our pure AOSP taste.I own a samsung device and i hate its Touchwiz look.I also hate to spend a lot of time in theming/fixing layouts for AOSP look.So i found one method to do so without modifying much files.I don't know whether someone has already shared this method or not.After applying this method, most part of your UI will look like AOSP UI.
The idea came to my mind when i was designing my app.When i launched it on my device, it was in Touchwiz look which was horrible for me.So i changed its theme to Holo Dark.Thats where my idea is.When you define Holo Dark/Holo Light theme in you app, you don't need addition image/widget resources.They're already present in framework.
So, Let's start
How to get Holo Light theme as default theme instead of Dark Layout:
- Decompile framework-res.apk
- Navigate to /res/values and open Styles.xml
- There you'll see many themes defined between <style name="Theme"></style>
- Now search for
- Copy contents between <style name="Theme.Holo"....> and </style>
- Now search for
- Paste the contents which you copied before between <style name="Theme.DeviceDefault"...> and </style>
- Now in the header of the DeviceDefault theme its parent is mentioned.Here DeviceDefault theme is overriding attributes of its parent.Holo theme is inherited from Theme so change
<style name="Theme.DeviceDefault" parent="@style/Theme.Holo">
<style name="Theme.DeviceDefault" parent="@style/Theme">
- OK.That's all.Compile framework-res.apk, cross the fingers and push it back to device.
Yeah i know method is short and simple.What we are doing here is replacing OEM's default theme with Holo theme.As mentioned before, we already have resources for it.
Keep in mind that this way you won't get a totally functioning AOSP themed ROM.Some of the apps (only stock apps) will have misplaced layouts after applying this (specially samsung roms because of bad programming).But now you just need to fix them.You dialogue boxes,menus and eveything else will be displayed in Dark Holo theme.
Tested with Samsung JB firwmware.
So GooD Luck
The world aint all sunshine and rainbows, its a very mean and nasty place and I dont care how tough you are, it will beat you to your knees and keep you there permanently if you let it.
You, me, or nobody, is gonna hit as hard as life; but it aint about how hard you hit, its about how hard you can get hit and keep moving forward, how much you can take and keep moving forward.
Thats how winning is done...
Donate me some "Thanks" if i've helped you...