• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [How-to][Tutorial] Theme GB settings.apk to ICS style pt.2

LDrifta

No Stranger 2 Danger
Jun 7, 2011
3,907
3,202
35
Lynn, MA
This guide will explain how to completely modify the settings.apk to 'look-like' ICS style, minus the toggles... still cant figure that out yet :D

basically this is a Part 2 of this guys guide here ([GUIDE] ICS Style 'Settings.apk' - Make it yourself !! !! - xda-developers) written by Balamu96m

his guide explains how to add the extra titles and divide your settings into sections

my guide explains how to change the font & prefference selection size to look more like ICS

so in here you will learn how to get from this:
05.jpg


to this:
2.png


Also you can follow this guide here
([TUTORIAL] How to change Android's black background - xda-developers) written by AvatarOfFrost
or this guide here
(http://androidforums.com/esteem-all-things-root/584365-mod-guide-how-change-system-backgrounds.html) written by shinyside
to change the actual background of your settings.apk (and other apps) with the background of your choice :D

now before we begin, i just want to say the information i am personally providing is all learned from MY own trial & error, did NOT take this information from anywhere else off anyone else's guide, so i appologize if somebody already went through the trouble of writing this up..

for information on how to properly decompile & recompile apk's look here (http://androidforums.com/esteem-all...roperly-decompile-recompile-apks-apktool.html)


Let's Begin
ok so at this point you should have your settings.apk with the added titles over specified sections.. so now the first step is to (again):

-decompile the settings.apk (apktool preffered)

-scroll through to this directory (res/layout) and locate a file called 'prefference_icon.xml'

-the edits were going to make are very simple so im not going to copy and paste my whole xml file for you all, just pay attention and you should be able to do this :D

-first thing to change is:<ImageView
--look for the android:layout_width= & android:layout_hieght= set values as 25.0dip so should look like this

android:layout_width="25.0dip" android:layout_height="25.0dip"
this sets your icon size

-next line to edit is: <RelativeLayout
--same thing just for height, set to 25.0dip
this sets the layout size of prefference selection

-last but not least is:<TextView (the one that has android:textAppearance="?android:textAppearanceLarge)
--only thing to edit is android:textAppearance="?android:textAppearanceLarge LOL
--change it to Medium

and thats it.. very simple :D


Bonus thanks fuzzy, shiny, vsuperuserv and all you guys for the help :D
as a bonus ill also provide this info, some friends helped me accomplish this goal so thanks to them!!

to edit the image used as the title background for those new titles you added :D

it's in the framework-res.apk, same idea as the guide for replacing the stock android 'black background' with an image, we are just replacing an image with another image, because original is a .9 and the device wont boot if not edited properly lol :D

-look for this file in here: res/values/styles.xml

-open xml in text editor (npp) and serch for this line:
<style name="Widget.TextView.ListSeparator" parent="@style/Widget.TextView">
--under it will be this line: <item name="background">@drawable/dark_header</item>

--change 'dark_header' to whatever you want (i use settings_title_header)

--now create a .png 480x40 and edit it to your liking, name it what you chose for a name ie: settings_title_header.png and place it in drawable-hdpi

now recompile and BOOM!!!


Remember to thank all your devs, themers, modders etc...
 
This guide will explain how to completely modify the settings.apk to 'look-like' ICS style, minus the toggles... still cant figure that out yet :D

basically this is a Part 2 of this guys guide here ([GUIDE] ICS Style 'Settings.apk' - Make it yourself !! !! - xda-developers) written by Balamu96m

his guide explains how to add the extra titles and divide your settings into sections

my guide explains how to change the font & prefference selection size to look more like ICS

so in here you will learn how to get from this:
05.jpg


to this:
2.png


Also you can follow this guide here ([TUTORIAL] How to change Android's black background - xda-developers) to change the actual background of your settings.apk (and other apps) with the background of your choice :D



for information on how to properly decompile & recompile apk's look here (http://androidforums.com/esteem-all...roperly-decompile-recompile-apks-apktool.html)


Let's Begin
ok so at this point you should have your settings.apk with the added titles over specified sections.. so now the first step is to (again):

-decompile the settings.apk (apktool preffered)

-scroll through to this directory (res/layout) and locate a file called 'prefference_icon.xml'

-the edits were going to make are very simple so im not going to copy and paste my whole xml file for you all, just pay attention and you should be able to do this :D

-first thing to change is:<ImageView
--look for the android:layout_width= & android:layout_hieght= set values as 25.0dip so should look like this

android:layout_width="25.0dip" android:layout_height="25.0dip"
this sets your icon size

-next line to edit is: <RelativeLayout
--same thing just for height, set to 25.0dip
this sets the layout size of prefference selection

-last but not least is:<TextView (the one that has android:textAppearance="?android:textAppearanceLarge)
--only thing to edit is android:textAppearance="?android:textAppearanceLarge LOL
--change it to Medium

and thats it.. very simple :D


Bonus thanks fuzzy, shiny, vsuperuserv and all you guys for the help :D
as a bonus ill also provide this info, some friends helped me accomplish this goal so thanks to them!!

to edit the image used as the title background for those new titles you added :D

it's in the framework-res.apk, same idea as the guide for replacing the stock android 'black background' with an image, we are just replacing an image with another image, because original is a .9 and the device wont boot if not edited properly lol :D

-look for this file in here: res/values/styles.xml

-open xml in text editor (npp) and serch for this line:
<style name="Widget.TextView.ListSeparator" parent="@style/Widget.TextView">
--under it will be this line: <item name="background">@drawable/dark_header</item>

--change 'dark_header' to whatever you want (i use settings_title_header)

--now create a .png 480x40 and edit it to your liking, name it what you chose for a name ie: settings_title_header.png and place it in drawable-hdpi

now recompile and BOOM!!!


Remember to thank all your devs, themers, modders etc...

I can already see it " HELP. I keep getting an error when i compile. Lol
 
Upvote 0
Always had the ICS theme on by Fuzzy.. then noticed this thread, so I was like "Hey, it's probably in 2.5 Beta 4 if he has it done!" So I went and got the apk, replaced it and thats what I got :3
yeah the 2 files you want are used in the framework, so you need #2 2.5 framework for this to apply as well, sorry man lol ishould probly mention that in the OP :D
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones