yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Nexus] giannisgx89:
I found that out since i heard something about editing smali etc. so i just stay with my black background but either way i still couldn't find how should i change only the color in settings text cause i'm a real noob to this.

But it would be nice to have a nice white clean settings background. What exact lines should i add to colors.xml?

Thanks for your answer :)
[Samsung Galaxy Nexus] bdemartino:
You don't have to rename the .apk to .zip to open with 7zip, if you right click the .apk and select the "open archive" from the 7zip context menu, it will open it just like a .zip saving you the two added steps.
[Samsung Galaxy Nexus] Razer(x):
I can't sign APKs for the market on my laptop, i've got the key, but i'm getting

"jarsigner: unable to create name.apk.sig"

Anyone has an idea?

EDIT: Fixed, it was a problem of folder permissions under W8
[Samsung Galaxy Nexus] artvandelay440:
From the settings screenshot, it looks like this theme might have found that elusive tablet mode background nord has been looking for:

http://xdaforums.com/showthread.php?t=1713427
[Samsung Galaxy Nexus] dermann:
Yes, chopper the dog is right. But you'll want to change the ones that are in the contacts.apk itself. This is the xml that it uses "action_bar_tab.xml."

This is my code I used to give it some additional style.

<?xml version="1.0" encoding="utf-8"?>
<selector [COLOR="Blue"][B]android:exitFadeDuration="@android:integer/config_shortAnimTime"[/B][/COLOR]
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/list_activated_holo" android:state_activated="true" />
<item android:state_pressed="true" android:drawable="@drawable/list_pressed_holo_light" />
<item android:state_focused="true" android:drawable="@drawable/list_focused_holo" />
<item android:state_selected="false" android:state_pressed="true" android:drawable="@drawable/tab_unselected_pressed_holo" />
<item android:state_focused="false" android:state_selected="true" android:state_pressed="false" android:drawable="@drawable/tab_selected_holo" />
<item android:state_focused="false" android:state_selected="false" android:state_pressed="false" android:drawable="@drawable/tab_unselected_holo" />
</selector>

EDIT!! Just seen I'm a little to late with my answer. Haha, oh well.
[Samsung Galaxy Nexus] mrich137:
Note: This is a cross post from the other sticky. Just realized I put it in the wrong thread when I meant to put it here...

Hey everyone. I'm new to theming, and I've finally got my first Theme Chooser apk to work. It's not much, so far the only thing I've changed is the Softkeys to the ICS Blue Reflection style.

The next thing that I wanted to do is to change the battery icons to look like the Xoom, but I'm a little confused on how that would work. For one thing, the pngs I found are hdpi and not xhdpi, will it break / look bad if I use the wrong resolution for these? The other thing I'm confused about is the fact that I believe the XMLs in the SystemUI.apk are only for certain battery levels, but there is a single image for each battery percentage. To use these images, do I need to edit the SystemUI XMLs to accommodate for each image, or will redirecting only work for images already defined in the SystemUI.apk XML file? If I do need to edit the SystemUI XML to make these images work can I redirect an XML file that defines an image for each percentage that will replace the one that is usually used by SystemUI?

Finally is it possible to use the Theme Chooser engine to replace boot animations? My best guess would say probably not, but I figured I might as well ask while I'm here. There's a lot of great boot animations out there I'd love to see on my phone, but that would require me to have to reflash the animation after flashing each nightly (which is why I started putting this theme together, since I like the reflective blue softkeys but hated having to reflash since the nightly would overwrite my SystemUI).

Any suggestions or a link to some Theme Chooser documentation would be greatly appreciated. Thanks in advance.
[Samsung Galaxy Nexus] artvandelay440:
hdpi icons will look approximately 75% of the size of xhdpi ones, so i'd recreate new vector images of the xoom images and then save it for later use. (Vector images can scale to any resolution with no distortion) If it really doesn't matter to you, you could just scale the image up, but i'd advise against this. It usually looks grainy.

as far as the accurate battery images, you'll need a battery stat xml that contains a redirection to each battery percentage.To get an idea of what i mean, just download my dark elegance theme, decompile it, and look in the drawables folder at mine.

As far as i know, the theme chooser will not replace a boot animation since it cant access the /system/media or data/local folders.
[Samsung Galaxy Nexus] neccoguy21:
Quote:We all know that different versions of apktool.jar and aapt.exe will lead to different results when dealing with certain apks...

No we don't. In fact, it's been this kind of "you all know how to get this far..." mentality in every theming post I've ever read that has kept me from ever being able to figure out what theming truly is, and how to go about it. I've been unlocking, rooting, and flashing roms and kernels to phones for 2 years, but I've never themed a one. I would like to, but I just can't find a post that breaks everything down. I know I sound like every other "hey what does root mean?" noob in the book, but help a dude out. Thanks.
[Samsung Galaxy Nexus] artvandelay440:
I'm always willing to help, even from the very beginning. Ask any question you want- don't feel bad, because i guarantee, every amazing themer has had to ask it at some point. PM me if you need, or ask here.
[Samsung Galaxy Nexus] Jamin13:
Quick question, is there a stock template to theme AOKP/CM9? I know there was one posted on G+ but it was for use with Linux.

|Trolling With A Smile|
[Samsung Galaxy Nexus] artvandelay440:
Yeah, Ricardo's was linux only- there isn't a Windows one. The best you can do is ask someone's permission to use theirs as a base, just be sure to change all the strings/styles/manifest xmls to make it a distinct package.
[Samsung Galaxy Nexus] Jamin13:
Ah, that's what I didn't want to do. Has to be done, I suppose.

I just wanted the framework, systemUI, and ROM Control themed. :p

If I'm using someone else's as a base, I'll have to fully theme it just so I don't have to go through the hassle of creating new redirections and package xmls.

|Trolling With A Smile|
[Samsung Galaxy Nexus] artvandelay440:
No problem- download your template of choice and delete all the images except those from framework/systemui/rom comtrol. Also, delete all the xml redirections except framework/systemui/rom control. Last, delete public.xml from res/values. Compile.
[Samsung Galaxy Nexus] Jamin13:
Thanks. I know for a fact I don't want any of the colors of whatever base I'll use. :p

|Trolling With A Smile|
[Samsung Galaxy Nexus] mrich137:
So I took your advice and I decompiled your dark elegance theme (which looks great btw), and I'm still having trouble understanding how to redirect the battery levels. I used the com_android_systemui_stat_sys_battery_circle.xml as my guide, for the individual levels, and then I included each of the images for each percentage, and redirections in the com_android_systemui.xml in the xml folder. Everything compiled correctly, but when I tested the theme, only the levels that were previously defined (100, 85, 71, etc) would display.

I thought it was something that I was forgetting to include, so I was playing around with your dark elegance theme and I can't figure out how to get the circle battery to show up in this theme either. Is there something that I need to change in the settings to get these images to display? I checked the Battery status style in System/Status bar but that still doesn't allow me to switch to the circle battery. Suggestions?
[Samsung Galaxy Nexus] artvandelay440:
Hmm...make sure you put the com_android_systemui_stat_sys_battery_circle.xml back in the /drawable folder, not /xml folder. Also, make sure your images are named exactly correct- make sure each image ends in "circle". Sometimes that gets left off. If all else fails, upload it and i'll look at it.
[Samsung Galaxy Nexus] mrich137:
I did place that xml in the /drawable folder, but i just named it com_android_systemui_stat_sys_battery.xml, and had all of the xml elements and images without the "circle" in the name. I changed it so that circle is added to the xml file name, all of the xml attributes, and all of the image files. I left the redirections to the charge animations the same, so I still have the same results when charging, where only the 100, 85, 71, etc images show, but because I've changed the redirections and file names, when I unplug from the charger, I get only the stock battery image.

Here is the dropbox link for the signed apk. Let me know what you think, or if you'd prefer the unsigned apk.

https://dl.dropbox.com/u/80100310/signed-ShinyBlueICS.apk

**edit**

I forgot to change the redirections in the systemui.xml, made edits to the redirections in there and it looks like it works. The charging animation is off, but I didn't mess with that yet.

Thanks for the help, I thought I would be able to name the files/images whatever, and thought I'd save some time leaving out the word circle. Are there certain requirements that prevented this from working when I left "circle" out of the xml attributes/image names, or do you think it wasn't working because Android already had definitions for the ones I had recreated when leaving out the word circle?

Anyway, the apk has been updated, recompiled, signed and I've replaced the old one in case you or anyone else has any use for it.

Thanks again!

**double edit**

Maybe it doesn't work... I was showing an image for 43 at the time, which I thought wasn't one of the preset values, and it was my current battery level, but now that my battery has dropped to 39, it still says 43?
[Samsung Galaxy Nexus] JLowe:
Which xml I have to edit to change the color of the notification icons on the left hand site of the notification bar ?

Thank you for your help!
[Samsung Galaxy Nexus] MR H3LLMAN:
They are not controlled by an xml. They are individual images found in systemUI, framework-res and whatever respective app we are talking about. They are usually found in the drawable-xhdpi folder
[Samsung Galaxy Nexus] k4bbe:
Trying to change the colour of the notification text in status bar

Deleted
[Samsung Galaxy Nexus] :
Fellow themer subscribing to thread :cowboy:
[Samsung Galaxy Nexus] stumpy352:
Hi guys, was just wondering if someone could detail for me the process for changing a particular text colour in a third party app using theme chooser. I'm guessing I'll have to decompile the third party app and find the text xml & redirect it to a new style. Is this right, or am I off track? I don't want to touch my themed framework text colours, but I've got some wow & bob in some apps. Any help would be appreciated.

.....memoirs of a flash addict.
[Samsung Galaxy Nexus] m1keyb:
Do you still need help with this? Its difficult to advise without knowing how and what you've changed in framework, they will be the cause of the bobs and wows so try to fix them there if you can.

I'm working on a little project that would help identifying color issues but it isn't ready yet.
[Samsung Galaxy Nexus] artvandelay440:
yep- you'll need to decompile your app and find the xml controlling the text color you want. If it's in the colors.xml of your app, simply take that line and copy it into your theme chooser colors.xml then go to the redirection xml and add a redirect to the new color. Hope that wasn't too confusing lol.
[Samsung Galaxy Nexus] stumpy352:
And hope that its not in layout. :D Thanks mate.

.....memoirs of a flash addict.
[Samsung Galaxy Nexus] stumpy352:
Another question. My theme doesn't have an icon and I'm trying to add one. I've added

to my manifest, and added the icon to the drawable folder. It compiles fine, but won't install. Because there's no java & therefore no smali folder when decompiled, I have no idea if that Foo declaration is correct or not. Is there another way to add an icon that will be recognised by the play store dev console?

Edit: nvm I worked it out. ...

.....memoirs of a flash addict.
[Samsung Galaxy Nexus] olus:
anyone can make me an themechooser apk which just includes navigation bar buttons and lockscreen lockring?

i just want to theme this things, so i want decompile this apk, edit the pngs and compile it.

everytime i flash an update of my rom i do edit systemui.apk and framework-res.apk.. im bored, so i want a themechooser theme which does this automatically..

thank you guys for tips, recipes and prepared apks ;)
[Samsung Galaxy Nexus] leha2000:
Nice theme!!! Thank you!
[Samsung Galaxy Nexus] Pete2506:
Is it possible to force an image as navbar background instead of an colour? I've managed to do this for the statusbar, but is somebody able to explain how to do that? I am using a jellybean rom.

Greetings Pete
[Samsung Galaxy Nexus] stumpy352:
Can anyone tell me if its possible to invert android:theme that's declared in an apps

manifest using theme chooser.

eg. Redirect

android:theme="@android:style/Theme.Holo"

(in settings.apk AndroidManifest)

(in Settings.xml)

<item name="style/Theme.Holo"="@style/Theme.Holo"

(Or would this need to go in android.xml. I'm guessing not, because then it would affect all apps that use the holo theme right?)

(In styles.xml)

<style name="Theme.Holo" parent="android:Theme.Holo.Light">

If I've got it wrong, please feel free to correct me.

I realise that you would have to redirect all declared android themes for that app, but would it work? If so, it would make theming light coloured themes easier & without breaking framework colors for apps that aren't/can't be themed. Sorry if this is elementary theming, but I'm still kinda new at this.

.....memoirs of a flash addict.
[Samsung Galaxy Nexus] artvandelay440:
To redirect a style, (i'll use MMS.apk as an example):

In your MMS apk, take the existing

<style name="MmsHoloTheme" parent="@android:style/Theme.Holo.DarkActionBar" />

and paste that into your styles.xml of the theme chooser apk. If you want to make it use the dark theme (theme.holo) be sure you delete the .DarkActionBar out of the above quote when you paste it.

then go into the com_android_mms.xml in /res/xml and add the style redirection like this:

<item name="style/MmsHoloTheme">@style/MmsHoloTheme</item>
[Samsung Galaxy Nexus] stumpy352:
Yes, that works for styles that are in the styles.xml of the app you're theming but what about declared application/activity themes which direct to @android:style/Theme.....that are only referenced from the manifest of the app you're theming.

.....memoirs of a flash addict.
[Samsung Galaxy Nexus] m1keyb:
You can't do anything about the manifest afaik. You could add something like this to android.xml but like you say it affects everything and you still have to change things anyway so it's not ideal.

<item name="style/Theme">@style/MyTheme</item>
<item name="style/Theme.Holo">android:style/Theme.Holo.Light</item>
<item name="style/Theme.Dialog">android:style/Theme.Holo.Light.Dialog</item>
<item name="style/Theme.Dialog.Alert">android:style/Theme.Holo.Light.Dialog.Alert</item>
<item name="style/Theme.Holo.Dialog">android:style/Theme.Holo.Light.Dialog</item>
<item name="style/Theme.Holo.Dialog.Alert">android:style/Theme.Holo.Light.Dialog.Alert</item>
<item name="style/AlertDialog">android:style/AlertDialog.Holo.Light</item>
<item name="style/AlertDialog.Holo">android:style/AlertDialog.Holo.Light</item>

You can't do this though

<item name="style/Theme">android:style/Theme.Holo.Light</item

I'm guessing it's because of resources 'theme' uses that aren't in holo.light.
[Samsung Galaxy Nexus] stumpy352:
But you should be able to do this.

-in android.xml-

<item name="style/Theme">@"style/Theme"</item>
<item name="style/Theme.Holo">@"style/Theme.Holo"</item>

-in styles.xml-

<style name="Theme" parent="@android:style/Theme.Light"</style>
<style name="Theme.Holo" parent="@android:style/Theme.Holo.Light"</style>

Correct or no?

.....memoirs of a flash addict.
[Samsung Galaxy Nexus] m1keyb:
Yeah you can do that, that will also redirect the themes. There will still be issues but it's the best way to do it imo
[Samsung Galaxy Nexus] stumpy352:
Would still have to redirect all the dialogue, window, widget & panel themes the same way, but i think there would be less issues than inverting images, text colors & such manually. Lot less work for a similar if not better result. I think it would have less impact on 3rd party apps too.

.....memoirs of a flash addict.
[Samsung Galaxy Nexus] chopper the dog:
I've got contacts inverted via theme engine for aokp. But as you can see the main screen still calls the light holo BG. All other edit and contact screens are dark holo. What am I missing for that one edit? Just can't seem to see where that drawable is called from.

good day.
[Samsung Galaxy Nexus] stumpy352:
Try layout/contact_list_activity.xml android:background="?attr/contact_browser_background. Its declared stylable, but not sure where you go from there.

EDIT: Actually try styles.xml style name="PeopleTheme" second item down.

.....memoirs of a flash addict.
[Samsung Galaxy Nexus] Razer(x):
How to change google now widget background?
[Samsung Galaxy Nexus] stumpy352:
QuickSearchBox.apk. res/drawable-?dpi/widget_search_frame.9.png. That the one you're after?

.....memoirs of a flash addict.
[Samsung Galaxy Nexus] olus:
is it hard for you guys ;) i will donate a little bit..
[Samsung Galaxy Nexus] stumpy352:
Send me the images. I'll do it for you. What do yo want it to be called? What screen density, etc.

.....memoirs of a flash addict.
[Samsung Galaxy Nexus] olus:
okay man.. thank you for reply. i will send you the images and the other infos later this day. im at work now.. ;)
[Samsung Galaxy Nexus] :
*edit* nevermind, fixed it myself :)
[Samsung Galaxy Nexus] Razer(x):
Yeah, that was it. thanks

Also, how to theme this?

http://imageshack.us/photo/my-images/11/senzanomejs.png/

http://imageshack.us/photo/my-images/833/senzanome2y.png/
[Samsung Galaxy Nexus] stumpy352:
For the first one, source seems to be pointing to android:drawable/scrubber_primary_holo for on & android:drawable/scrubber_track_holo_dark for off, but imo it doesn't really need to be themed, since in aokp you have the option to change these colors manually anyway. Along with alpha values for the buttons & the toggle background also, which means that if someone has changed these values manually, your edits won't show unless they reset their toggles.

As for rhe second one, if its the icon bg you're after, its controlled by either framewwork-res/res/values/colors.xml/notification_template_icon_bg or notification_template_icon_low_bg, but for some reason it won't theme for system notifications using theme chooser. Neither will the statusbar event content text colors. It themes for normal notifications, but not system ones (ime switch, usb, debugging, data usage warning, etc.) No-one seems to be able to tell me why, which sucks because my Chromium theme uses light colors. ...end rant. :)

.....memoirs of a flash addict.
[Samsung Galaxy Nexus] Razer(x):
Thanks mate. Actually in the first one i was referring to the overscroll, you can see it is blue.

Also i've already made the notification background black, but it keeps being blue for keyboard

Too bad that won't get themed via theme chooser
[Samsung Galaxy Nexus] stumpy352:
Oops, sorry. Umm... try framework-res/res/drawable-?dpi/overscroll_glow & overscroll_edge.

.....memoirs of a flash addict.
[Samsung Galaxy Nexus] Razer(x):
They are already themed, i don't know why its not working. But that's really minor, i totally have to change that icon background
[Samsung Galaxy Nexus] stumpy352:
Did it theme the glow in other windows? Which rom is it, coz my glow is above the toggles for some reason. I know I got rid of it in my theme, coz its not there. Did you check your redirections?

.....memoirs of a flash addict.
[Samsung Galaxy Nexus] chopper the dog:
@Razer(x) - systemUI/res/drawable-nodpi/notify_item_glow_bottom

@stumpy352 - No such xml named that or close to. and All entries for people theme in styles have been edited to theme.holo like they should be.

*edit* Is there someone that has successfully "dark holo'd" contacts via theme engine for aokp that can pm me their apk so I can diff out? I'm 99% there but the stupid back ground.

good day.
[Samsung Galaxy Nexus] Razer(x):
I have this themed too, probably there's a problem with theme engine.

Do you know the background of notification icons too? I would like to change even the one of selected keyboard
[Samsung Galaxy Nexus] stumpy352:
Sorry, my bad. I meant contact_detail_list_ item.xml, but looking at it now, I don't think that's what you're after. Dunno. :D

.....memoirs of a flash addict.

---------- Post added at 09:50 AM ---------- Previous post was at 09:13 AM ----------

Have you managed to change the icon background for usb debugging notification? How?

.....memoirs of a flash addict.
[Samsung Galaxy Nexus] Razer(x):
Nope, only "normal" notifications. That's what i want to do
[Samsung Galaxy Nexus] stumpy352:
Good luck. I haven't been able to. If you find a way, let me know please, coz its the only thing that let's my theme down.

.....memoirs of a flash addict.
[Samsung Galaxy Nexus] artvandelay440:
I've done it let me find the code in a few minutes.
[Samsung Galaxy Nexus] stumpy352:
My god, that is gorgeous. Have you tried changing the text colors too to see if it would stick?

EDIT: Never mind. I see you're using BAMF rom. Those notifications do theme on bamf, but not on any other rom. I haven't been able to find the hack they made to make it possible either.

.....memoirs of a flash addict.
[Samsung Galaxy Nexus] artvandelay440:
Thanks! Let me check and I'll get back.
[Samsung Galaxy Nexus] stumpy352:
You've redirected the icon bg to images, yes. Wouldn't mind seeing that code. Please.

.....memoirs of a flash addict.
[Samsung Galaxy Nexus] artvandelay440:
Sure, no problem. The background always was an image. Code is below. I compared AOSP code to BAMF code (github link)(framework/res/layout/notification_template_base.xml), and it's identical as far as those images, so it should be themable with this- add it to android.xml:

<item name="drawable/notification_template_icon_bg">@drawable/notification_template_icon_bg</item>

<item name="drawable/notification_template_icon_low_bg">@drawable/notification_template_icon_low_bg</item>

You'll notice i didn't add the package name to my redirected image, but that's just lazy coding on my part :P
[Samsung Galaxy Nexus] stumpy352:
There is no image in my rom called this, it directs to a color.

Do i then add 9patch image in drawable-xhdpi called notification_template_icon_bg etc? And remove the drawable item in colors.xml in my theme.

.....memoirs of a flash addict.
[Samsung Galaxy Nexus] artvandelay440:
What rom do you use? I found the image in the pure unmolested AOSP framework.

It actually isn't a .9 patch by default, but you could make it one if you wanted to.

If your developer has redirected it to a color via xml, you coul dalways change it back. If you can link me to your ROM, i'll take a look.
[Samsung Galaxy Nexus] stumpy352:
Ah yes, but it never changes when I theme it. I'm on aokp, but I built the theme on bamf & it never changed then either. Only way was using the hex color for notification_template_icon_bg in colors.xml. Its the same in both roms.

.....memoirs of a flash addict.
[Samsung Galaxy Nexus] artvandelay440:
Ah ok- at that point, maybe check your spelling both on the redirection code and the images. That;s about all i can think of without looking through your theme apk. (Which i can do if you want)