Switch holo dark & holo light theme - Android Themes

As everybody knows, in our android smartphone from 4.0 there is a possibility to switch between holo light and holo dark theme...but without selector on settings, only change some value on system.
Reading around, I have found that maybe we have to modify "androidmanifest.XML" but every apk have one, and I don't know which edit.
I tried to edit from "framework-res.apk" but when I finished and recompiled again, and replace with existing one, I have only a boot loop.....
Someone can help me to understand which file I have to edit for switch from holo.light to holo.dark???
Thanks to everybody....
Inviato dal mio U8800pro con Tapatalk 2

no one can help me to understand??
Maybe I have explained so bad, or really nobody knows how to change the theme?

Well there is no straightforward answer. Some apps declare their theme in the styles.xml inside the values folder. Others do it in the manifest. That's what you need to change. It's app specific. The framework has nothing to do with it
Sent from my One S using Tapatalk 4 Beta

Thanks for your answer, i explain you one thing to understand better:
The same ROM has been created in white (holo.light) and in dark gray (holo.dark). If i explore all the System apk, in androidmanifest.xml there is the value "holo.light" in white rom, and "holo" in dark version....
You can tell me to replace the androidmanifest.xml with existed one, but if i do it, i have a bootloop, i have tried to edit it, and i have the same problem, but if i change the entire apk, it work perfectly and change the apk theme color.....why this???
And finally, all the applications i download from the market, are not personalized with a single theme, it turns white or black depending on a value that tells him to become white or dark, which is the same, in my opinion, that runs the Rom in white or dark.
Which is this value, and where i can find it???

Don't change the whole manifest. Only that line. And remember, there WILL be parts of the app which will not look right.
Sent from my One S using Tapatalk 4 Beta

You would need to go through all the .xml files in systemui.apk and framework-res.apk and change all the image redirections. Or make a cm theme apk
Sent from my Droid Incredible using xda premium

Chris95X8 said:
Don't change the whole manifest. Only that line. And remember, there WILL be parts of the app which will not look right.
Sent from my One S using Tapatalk 4 Beta
Click to expand...
Click to collapse
I have tried both replacing the entire "AndroidManifest.xml", and change only the individual lines where it was written "HOLO.LIGHT" and made ​​him "holo" (deleting the word "light"), but the result is always the same: with the "framework-res.apk" does not start the rom, with any other apk (settings.apk for example) I do not install the apk.
Shakes27 said:
You would need to go through all the .xml files in systemui.apk and framework-res.apk and change all the image redirections. Or make a cm theme apk
Sent from my Droid Incredible using xda premium
Click to expand...
Click to collapse
You think is a redirections problem??? The images there are all on "res/drawable-hdpi" and cheking both xml files (ROM HOLO AND ROM HOLO LIGHT) there are not differences except the lines where is writed "Holo" on dark theme, and "holo.light" in white theme.
If someone want help me, i can send in private the same apk you want, version dark, and version white, so you can help me to understand......

Is there anyone????

cuvetto said:
Is there anyone????
Click to expand...
Click to collapse
what you are asking to do is very very complicated. there isn't an easy answer. you would have to retheme every single app on your phone. plus changing manifest won't work....especially if an app is only coded for holo dark...but the major problem is that no developer follows google style designs 100%, not even google at the moment.

cuvetto said:
Is there anyone????
Click to expand...
Click to collapse
after pushing framework-res.apk into your phone, go to recovery and try fixing permissions.
Check this thread
http://forum.xda-developers.com/showthread.php?t=2220549

Related

Change statusbar color

Is there a way to change the color of the status bar ? Maybe some kind of app ?
Sent from my HTC Hero using XDA
App
yes there are many..
one of them is the search function
I'm gunna dredge this up because if you search "change status bar color" all you end up with is "show your home screen", a million threads on things with a title that has nothing to do with changing status bar colours and this thread.
How about being helpful for the new-to-android types that don't know what metamorph is and provide a link?
blakamin said:
I'm gunna dredge this up because if you search "change status bar color" all you end up with is "show your home screen", a million threads on things with a title that has nothing to do with changing status bar colours and this thread.
How about being helpful for the new-to-android types that don't know what metamorph is and provide a link?
Click to expand...
Click to collapse
I used google and found a link fairly quick but since I'm new and I can't post a link, I guess your just going to need to search using this phrase "how to use metamorph XDA". It should be the first link...
Change statusbar_background.png in framework-res.apk and push it back to your phone in Recovery
Or create a metamorph for it
mangus7175 said:
I used google and found a link fairly quick but since I'm new and I can't post a link, I guess your just going to need to search using this phrase "how to use metamorph XDA". It should be the first link...
Click to expand...
Click to collapse
Yeah, I've done it. I just meant that the reply (especially from someone with a donate button!) to the OP could be more helpful for people new to android.
Since it is possible to change the color of the status bar, is it also possible to change the color of the settings screen? This screen is white on black on my HTC evo (and I think other devices). I would like to change it to black on white or so. I searched a lot, but couldn't find any method how to do this. Thanks again for any ideas!
I guess it is not possible?
Sent from my PC36100 using XDA App
palmdude said:
I guess it is not possible?
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
it's all in the framework-res apk
palmdude said:
I guess it is not possible?
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
the status bar is an image found in framework-res.apk /res/drawable-hdpi/
statusbar_background.png - status bar image. change it in photoshop to what you like. it's not a "color," so you can change the image to have a shadow, a design, whatever you like.
just keep in mind that if you make it transparent (like i did)...it may not work well with other apps on your phone (i.e. you'll see the apps background through the bar on top, not always a good thing!
dont confuse it with status_bar_background.png, which is the background file for your notification drawer.
UOT Kitchen: http://circle.glx.nl/
yer welcome
Many thanks! I will try to find this in the file you mentioned. Basically I will change that background with white.
Max_Pain said:
the status bar is an image found in framework-res.apk /res/drawable-hdpi/
statusbar_background.png - status bar image. change it in photoshop to what you like. it's not a "color," so you can change the image to have a shadow, a design, whatever you like.
just keep in mind that if you make it transparent (like i did)...it may not work well with other apps on your phone (i.e. you'll see the apps background through the bar on top, not always a good thing!
dont confuse it with status_bar_background.png, which is the background file for your notification drawer.
Click to expand...
Click to collapse
Sent from my PC36100 using XDA App
To change the text colors, you must first find the correct xml file to what you wish to change.
Decompile framework-res.apk with ApkManager
go in Folder layout, and search
status_bar_latest_event_content.xml
status_bar_expanded.xml
status_bar.xml
Click to expand...
Click to collapse
Edit with Notpad++ the Colors!!
Compile framework-res.apk and Copy new Files in your framework-res.apk Signed File and Copy your Phone!!
Thanks guys! I haven't tried it yet, but this is exactly the answer I have looking for !!
Now I just need to find a few hours of free time to learn/do this compiling/decompiling stuff. But I am confident
Sent from my PC36100 using XDA App
Wow I need to try this.
LostEden said:
Decompile framework-res.apk with ApkManager
go in Folder layout, and search
Edit with Notpad++ the Colors!!
Compile framework-res.apk and Copy new Files in your framework-res.apk Signed File and Copy your Phone!!
Click to expand...
Click to collapse
In these files I can not find options for changing the color of hours.
LostEden said:
Decompile framework-res.apk with ApkManager
go in Folder layout, and search
Edit with Notpad++ the Colors!!
Compile framework-res.apk and Copy new Files in your framework-res.apk Signed File and Copy your Phone!!
Click to expand...
Click to collapse
decompile or extract? apk manager has two options
NXUS said:
decompile or extract? apk manager has two options
Click to expand...
Click to collapse
You have to decompile to be able to edit xml files. One of those three files mentioned to search for(status bar expand) causes my phone to boot loop when I edit it. Is it linked to some other file that must also be edited?
LostEden said:
Decompile framework-res.apk with ApkManager
go in Folder layout, and search
Edit with Notpad++ the Colors!!
Compile framework-res.apk and Copy new Files in your framework-res.apk Signed File and Copy your Phone!!
Click to expand...
Click to collapse
Can someone please explain how to edit the colors in notepad++ with this method ?
Much thanks !!

[Q] How to mod framework-res.apk and twframework-res.apk

Hi guys,
Wondering if someone can give me some clear directions how to add battery icons (knowing that the resource IDs of the images are not stored in public.xml - it doesn't exist in samsung's framework-res.apk) and how can I change text colors (basically replace black with white and vice versa) and where should I change these values.
Thanks a lot!
Common themers, I know you know, you just don't wanna share
Joking I would really like to start themeing as well and these are the only 2 issues that I have at the moment.
icezar1 said:
Common themers, I know you know, you just don't wanna share
Joking I would really like to start themeing as well and these are the only 2 issues that I have at the moment.
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=724778
Get apk manger.I'm trying to do this too.
Hm, I did, I de-compiled the apk but did not want to compile back. Probably the images are not Draw 9-patch-ed. However, I still need to find out how to change the text color...
icezar1 said:
Hm, I did, I de-compiled the apk but did not want to compile back. Probably the images are not Draw 9-patch-ed. However, I still need to find out how to change the text color...
Click to expand...
Click to collapse
find you find out before keep me updated, and i'll do the same.
icezar1 said:
Hi guys,
Wondering if someone can give me some clear directions how to add battery icons (knowing that the resource IDs of the images are not stored in public.xml - it doesn't exist in samsung's framework-res.apk) and how can I change text colors (basically replace black with white and vice versa) and where should I change these values.
Thanks a lot!
Click to expand...
Click to collapse
You can change the battery icons in the framework-res.apk [look in the res/drawable hdpi/stat_sys_battery_x.png
and to change the text color: I was trying to figure that one out last week....From what I figured out you need to modify:
res/layout/status_bar_latest_event_content.xml
Which is found in your framework-res.apk aswell....Decomplie-edit-recomplie....
Good luck
what program are you using to edit your xml's?
chaosjh said:
what program are you using to edit your xml's?
Click to expand...
Click to collapse
apk_manager_4.9 to decomplie-recomplie. Then use notepad to edit
i change icons and stuff in framework by just using 7zip. No need to decompile or sign, or any of that. Super easy. Not sure about changing text color, tho.
If your just wanting to do simple changes (no .xml edits)
You can use WinRar to open the framework-res.apk and find the *.png's you want to replace.
Then copy/paste the new images over the old ones inside of WinRar.
Close.. and install.
But thats for quick and dirty changes. For more intricate stuff - animations etc. that require *.xml edits - do what the above folks say
No way..
OK, just decompiled-added icons from other decompiled framework-recompiled, no xml edits-installed. Look is changed, battery icons now displaying fine but... force closes and restarts the shell in less than 20 secs...
yup try the winrar method - there is no decompiling.. just copies the images into the *.apk
And shouldn't have any FC's if you try that method.
avgjoegeek said:
If your just wanting to do simple changes (no .xml edits)
You can use WinRar to open the framework-res.apk and find the *.png's you want to replace.
Then copy/paste the new images over the old ones inside of WinRar.
Close.. and install.
But thats for quick and dirty changes. For more intricate stuff - animations etc. that require *.xml edits - do what the above folks say
Click to expand...
Click to collapse
Yeah i changed icon with winRar, and all kinds of crazy stuff happed. Loop boots,and Fc
Have you guys figured out the text color yet? If you haven't let me know what text you're trying to change and I'll write something up in a few hours when I get off work.
Sent from my SAMSUNG-SGH-I897 using XDA App
fritzgerald said:
Have you guys figured out the text color yet? If you haven't let me know what text you're trying to change and I'll write something up in a few hours when I get off work.
Sent from my SAMSUNG-SGH-I897 using XDA App
Click to expand...
Click to collapse
i have tried for to days now to get these android faces icon for the battery.I've use winRar and it worked good for a few hours, but when i used cwm to backup my system on reboot it boot loop. I got apk manger and everytime I try to compile the apk there is a error.Oh changing the text color would be cool too!
dfuse06 said:
i have tried for to days now to get these android faces icon for the battery.I've use winRar and it worked good for a few hours, but when i used cwm to backup my system on reboot it boot loop. I got apk manger and everytime I try to compile the apk there is a error.Oh changing the text color would be cool too!
Click to expand...
Click to collapse
Shoot me a link to the icons you're trying to use. What ROM are you using(name & version). What text are you looking to change? There's not one global change to make all the text different I'll need to know what specifically you're trying to change.
I use the uot kitchen you get the icon on perception 7,but im on 8 now. I'm running perception 7 darknees 2.3 theme, and that is what i'm trying to get the icons on its the battery icon of the android smiley faces it is version j with white numbers. i'm going to look for a link for them.i have the framwork-res.apk with them in it.
When you recompile with APK Manager, a couple of things are very important to do:
1. Hit yes to "system app".
2. Hit yes to restoring the files:
-Open the "keep" folder and delete resources.arsc. Then delete anything you changed (if it's there).
3. Do NOT sign it.
It should work.
PuffinNugz said:
i change icons and stuff in framework by just using 7zip. No need to decompile or sign, or any of that. Super easy. Not sure about changing text color, tho.
Click to expand...
Click to collapse
Do you just individually edit each icon? Cause I can't find a way to copy in a folder. I'm pulling the icons from the 2.3 framework, but i just want to copy over the drawable folders for now.
TheEscapist said:
Do you just individually edit each icon? Cause I can't find a way to copy in a folder. I'm pulling the icons from the 2.3 framework, but i just want to copy over the drawable folders for now.
Click to expand...
Click to collapse
I just dragged the images from a particular themes framework and dropped them to the new one all within 7zip.

[Q] Editing apps background and font colour

Hi friends. How can I edit apps background and font colour. For example: exdialer background from white to black and font colour also.
Please dont prefer using exdialer theme. I already know that. Thank you...
i'm not sure.. but maybe you can decompile the app and change the background.png file
You need to decompile an app, change the png graphics you want, look for the xml files with text color values and change them. Then recompile the app.
For doing that you need a program to decompile. Try apktool, apk multitool or apk manager. There's lots of tutorials and the files that need to be edited depend on each app. So yeah, use google, use the search.
Dear friends. I already know I must decompile Apk file and edit it. So I dont know which xml file includes background and font, etc. colours.
Also I know changing PNG files in apk, so I am asking to change colours of apk.
I use search and don't find anything useful.
Thank you...
Styles.xml
___________XDA Premium__________
Don't be a noob. Be a newbie..!!
Details here.
____________________________________
But the bg can be in layout also
So lemme tel you the most importatnt thing
PLAY
If you play with files
You can achieve cool hacks und mods
Sent from my GT-S5830 using xda premium
Thank you for your support... But
CoolCatGetHome said:
But the bg can be in layout also
So lemme tel you the most importatnt thing
PLAY
If you play with files
You can achieve cool hacks und mods
Click to expand...
Click to collapse
I'm playing files since i have a symbian device and going on android. And i also change png files of apps succesfully. But this thing is not a png or other picture file. It must be hex code of colour.
So i extracted a lot of xml files and opened in different xml editors and didn't see any hex code. I also tried Xml to txt converter but didn't get a result.
Is there anyone who has knowledge about that...
Thank you..
msahin061 said:
I'm playing files since i have a symbian device and going on android. And i also change png files of apps succesfully. But this thing is not a png or other picture file. It must be hex code of colour.
So i extracted a lot of xml files and opened in different xml editors and didn't see any hex code. I also tried Xml to txt converter but didn't get a result.
Is there anyone who has knowledge about that...
Thank you..
Click to expand...
Click to collapse
You should use a tool to like APKtool to open up the APK's. Then you'll start to see hex. values
** sometime app bg isnt there and needs adding like
Android:background>@drawable/bgofcoolnes<
Some like that must be added to some lines for.bg
And it has guides on xda
Search in galaxy 3 sections
Sent from my GT-S5830 using xda premium
CoolCatGetHome said:
** sometime app bg isnt there and needs adding like
Android:background>@drawable/bgofcoolnes<
Some like that must be added to some lines for.bg
And it has guides on xda
Search in galaxy 3 sections
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
I will look for it. My connection is very slow now. Thank you very much :good:

[Q] How to write Xperia 4.3 Themes (from scratch, not by apk modding)

Hello,
Does anyone know or have any guides to writing themes for the 4.3 Xperias? I would really like to write some themes on my spare time. Haven't found anything anywhere.
Please note: I don't want to mod APKs, I want to write these themes in Eclipse, not by editing smali and decompiling apps. Please don't send me threads that reverse engineer pre made APKs.
DdcCabuslay said:
Hello,
Does anyone know or have any guides to writing themes for the 4.3 Xperias? I would really like to write some themes on my spare time. Haven't found anything anywhere.
Please note: I don't want to mod APKs, I want to write these themes in Eclipse, not by editing smali and decompiling apps. Please don't send me threads that reverse engineer pre made APKs.
Click to expand...
Click to collapse
Waw..
Sent from my C6903 using Tapatalk
@funky0308 do you know something about it?
eclyptos said:
@funky0308 do you know something about it?
Click to expand...
Click to collapse
Yeah...a bit...
There's no need for eclipse for themes...
Themes are 99.9% png's - what uou need is good PhotoShop skils and few xml's which you can write in simple notepad(++).
Draw assets and patch them in eclipse, contact all with xml's and compile...
If you have your reasons to use eclipse - O.K but we aren't using apktool only for reverse engineering...
Sent from my C6903 using Tapatalk
funky0308 said:
Yeah...a bit...
There's no need for eclipse for themes...
Themes are 99.9% png's - what uou need is good PhotoShop skils and few xml's which you can write in simple notepad(++).
Draw assets and patch them in eclipse, contact all with xml's and compile...
If you have your reasons to use eclipse - O.K but we aren't using apktool only for reverse engineering...
Sent from my C6903 using Tapatalk
Click to expand...
Click to collapse
Then how do the themes that are available on the Play Store get written? I know how to theme using apktool and whatnot. I'm mainly asking this because I haven't been able to change colour accents successfully with decompiling using apktool. I also don't think using a modded APK would be ok if wanted to publish on the Play Store.
DdcCabuslay said:
Then how do the themes that are available on the Play Store get written? I know how to theme using apktool and whatnot. I'm mainly asking this because I haven't been able to change colour accents successfully with decompiling using apktool. I also don't think using a modded APK would be ok if wanted to publish on the Play Store.
Click to expand...
Click to collapse
I'm not saying you should MOD theme from market - build it.
Draw all pngs and write all xml's.
You can use template to see dimensions and use that one as a template but you don't have to mod png's.
I'm doing that way...
I check dimensions and I draw my own png - same procedure is for xml.
You must contact Sony for that, send them your theme and only if they approve it and sign it with private keys you'll be able to sell it on market...
Problem is in keys, not in editing...
Sent from my C6903 using Tapatalk
funky0308 said:
I'm not saying you should MOD theme from market - build it.
Draw all pngs and write all xml's.
You can use template to see dimensions and use that one as a template but you don't have to mod png's.
I'm doing that way...
I check dimensions and I draw my own png - same procedure is for xml.
You must contact Sony for that, send them your theme and only if they approve it and sign it with private keys you'll be able to sell it on market...
Problem is in keys, not in editing...
Sent from my C6903 using Tapatalk
Click to expand...
Click to collapse
Mm, makes sense. Thanks.

Change dialer and settings wallpaper in any theme store theme?

As many of you know, many themes would be great if they just didn't have some super strange background in the dialer, settings, etc.
There's got to be a way to change this for any theme in the theme store.
Can anyone help us all out with a solution?
Sent from my SM-G920T using Tapatalk
Here is what you need to do:
-Install the theme from the store
-Browse to /data/app and find all the folders pertaining to your theme. Then find the specific folder that relate to the element you ware wanting to remove the wallpaper from (ie. com.themename.settings-1).
-Copy the base.apk in the folder to your computer
-Decompile with APK tool.
-Remove the .qmg that is the background. Update your public.xml
-Recompile and use original signature
-Place APK back into folder in /data/app and set correct permissions
-Reboot
:good:
cambunch said:
Here is what you need to do:
-Install the theme from the store
-Browse to /data/app and find all the folders pertaining to your theme. Then find the specific folder that relate to the element you ware wanting to remove the wallpaper from (ie. com.themename.settings-1).
-Copy the base.apk in the folder to your computer
-Decompile with APK tool.
-Remove the .qmg that is the background. Update your public.xml
-Recompile and use original signature
-Place APK back into folder in /data/app and set correct permissions
-Reboot
:good:
Click to expand...
Click to collapse
I'm using your LessIsMore theme and would like to have a darker grey background (hex 252425). before i attempt to follow your instructions, wanted to know if you prohibit changes like this...if yes, i understand and will leave as i. if you're ok, will the above method work with the LessIsMore theme? thanks.
cortez.i said:
I'm using your LessIsMore theme and would like to have a darker grey background (hex 252425). before i attempt to follow your instructions, wanted to know if you prohibit changes like this...if yes, i understand and will leave as i. if you're ok, will the above method work with the LessIsMore theme? thanks.
Click to expand...
Click to collapse
Yes, as long as you aren't sharing the theme as it's a paid theme. You will want to pull all the APKs and change edit the colors.xml looking for 454545 to change.
cambunch said:
Yes, as long as you aren't sharing the theme as it's a paid theme. You will want to pull all the APKs and change edit the colors.xml looking for 454545 to change.
Click to expand...
Click to collapse
you have my word... this is only for me. thanks for responding.
ran into issues getting things to compile so i'll use as is... thanks again.
zgroten said:
As many of you know, many themes would be great if they just didn't have some super strange background in the dialer, settings, etc.
There's got to be a way to change this for any theme in the theme store.
Can anyone help us all out with a solution?
Sent from my SM-G920T using Tapatalk
Click to expand...
Click to collapse
With alliance framework you can change these to an image of your choice from your gallery with any tint color you choose as well
Sent from my SM-G920F using Tapatalk

Categories

Resources