[Help] framework-res XML editing problems - Nexus S General

Hello there
I try to make a theme for the Rascream rom and i have some problems with XML editing and from what i see i'm not the only one with this problem.
I actually try to change colors of the text and a line in popup menu, but every time i recompile the framework-res apk with modified values, the statusbar and the lockscreen are deformated (look the screenshot)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I try to change the blue text and line in this screen to white...
Is here someone can help with this problem. This is the only thing i need to change for finish the theme. I try all i find over the internet, but without success.

No one?

Sometimes xml editing involves adding new lines to overlay others somewhere else. With ics ive noticed in arrays there are theme statements which change cursors, texts, and borders just from one change to the statement. Maybe check some source on the reboot options to narrow it down. Are you editing source or decompiling framework-res.apk?

But if i change any line i have everytime the same error.
I decompile the esisting framework-res.
Tnx for the help realy
On the road with my Nexus S...

klinkerkp said:
But if i change any line i have everytime the same error.
I decompile the esisting framework-res.
Tnx for the help realy
On the road with my Nexus S...
Click to expand...
Click to collapse
Pm sent!
Sent from my DarkICE Skanky CM9 Gnex using the app!

Related

Customizing your own notification/status bar

I have been searching around for a suitable theme for cm7, thou I found some really great looking theme out there, there is always something I like or don't like. So I thought I start a little project of my own to customize the theme myself.
I have been studying the framework.apk last night, but I am still not sure which file to change, because the naming is not too definitive to me. So I was wondering any theme builder out there can help me. Hopefully compile a guide for future beginners at some point as well.
The screenshot below with four different colour bracket is the parts I want to change, it would be so kind if someone can take a few minutes of their time to explain it to me with file I need to edit for each section.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Red: power toggle background
Blue: power toggle icons
Green: Notification item background
Yellow: Bottom tab.
With friendly greeting
/system/framework/framework-res.apk
Under /res/drawable-hdpi in the apk
The top bar icons are stat_
e.g. stat_battery36.png etc
Most of the images are in framework-res.apk so just have a look through there. You will need to decompile the apk to edit xml files for that search apktool
i heard that you can just add a .zip extension onto the apk file then you can just edit them there.
Or perhaps I am wrong, because once I change it to a zip file, I can't change it bk to apk even I rename the extension.
I am on a Mac, not sure if thats has anything to do with it.
thanks

Editing CM7 Statusbar

Hello....
I've got a problem, I was trying to modify the original Statusbar of CM7.First I haven't got any problems when I change the battery, wifi, bluetooh and oher icons, but for finish my work I want to edit the green lines that appears, when the statusbar is open, under some quick setiings (like wifi, bluetooh, gps and sound), and replace it for some blue lines....
But I didn't find and know what is the image.png or the .xml that I must to modify for do that.
I add an Image, with a mark around that exactly I want to modify, and my framework-res.apk and SystemUI.apk too...
Please help me...
framework-res.apk
SystemUI.apk
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
You can change it in settings/CyanogenMod settings/interface/notification power widget/indicator color
shanman-2 said:
You can change it in settings/CyanogenMod settings/interface/notification power widget/indicator color
Click to expand...
Click to collapse
That's isn't be that I need, I need to change the default color without any interface modification, that I wan't to do is modify any xml that contan the default color.... but my problem is that I don't where and what is that xml....
i think you should change the default colour on the menu thro it's code... not in the systemui... i think so
Settings > Cyanogenmod Settings > Interface > Notification power widget > Indicator color
Sent from my ADR6300 using Tapatalk 2
I believe he's putting a pre-customized ROM together and would like to change what the initial color is.
I've been trying to do the same thing with no luck finding the code for it

How do I change the size of the battery and Wi-Fi icons?

Hey guys,
I'm on Jelly Bean for performance, but I'm trying to replicate the looks of Honeycomb the best I can. I just swapped out the Wi-Fi and battery icons but as you can see below, they're too small. I believe I would change the size settings for these icons in the following xml files, but I looked with PSPad and a hex editor, and I don't see any values to change.
systemui.apk - drawable.xml and layout-sw600dp.xml
and here is the pic:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Please help - I'm so close to being done with this!
Glad to see someone else likes the Honeycomb look. You might need to change the actual drawable for this, I don't think it has a value that can be edited.
Armada,
Thanks for the reply. So do you mean the entire folder?
I see in res:
/layout:
battery_low.xml
/drawable:
stat_sys_battery.xml
stat_sys_battery_charge.xml
stat_sys_battery_charge_min.xml
stat_sys_kb_battery.xml
stat_sys_kb_battery_charge.xml
but no reference to Wi-Fi. So maybe it is the whole folder...
armada786 said:
Glad to see someone else likes the Honeycomb look. You might need to change the actual drawable for this, I don't think it has a value that can be edited.
Click to expand...
Click to collapse
Thanks to a suggestion by Sonny Sekhon, the problem has been fixed and I now have a fairly complete Honeycomb look on Jelly Bean! Since the images were too small, there was no need to edit any .xml but instead, I just multiplied the size of the drawables by 1.5x.
Thanks, Sonny!

[Q] Theming Contacts.apk

Hello guys!
I've been trying for several days to theme Contacts.apk.
I've tried so hard to bring ICS look to Galaxy Y, and now I'm stuck at Contacts.apk
Can someone help me, please?
This how it looks so far:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
This how CM7 Contacts looks:
See that Dial/Send SMS buttons look in mine and how looks in CM7?
I want that action button to look exactly as CM7. So I want from this:
--to this:
If someone know how to do it, please, but please tell me how to.
Thank you and have a nice day!
copy whats in cm7 contact then paste to your contact...
@MARINALIN85 .... i like what u said ...that ur trying hard to theme ics for our galaxy y....can i see ur work as a complete rom....am interested in something like that ...ics for our y.... and u seem to be working well for it.... so where have u reached any ics based roms u made and uploaded...pls give me link...
Hey do you have link for your contacts.apk? I like it. It's awesome.
Talking the app designing way
The layout xml of that view needs to be edited to change the dimensions of the button and aligning them...
There should be a line align_right/left/top/bottom =""(more or less similar) -editing that can make the button smaller(default also)
You can use eclipse to view some layouts ....
Sent from my GT-S5360 using xda app-developers app

[Q] Statusbar LG-E400

Hey guys, I need some help.
I edited my SystemUI.apk to remove the music widget and the carrier text for more notification space, But I have a problem now.
In the carrier area there was my clear button, and now it's gone. I want it back but diffrent, Hope you guys can help me!
This is how it looks like now:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
And this is how I want it:
Or can I make this button to clear the notifications?
Already Thanks!
DarrellDD
have a look at my SystemUI, it's themed similar to NatureUX's so it should answer your first question.
[EDIT]
Got it working now, and I know my problem.
Because I hide the old clear all button and not deleted it, It uses that one. By deleting it it uses the new one.
It works like a charm!
Thanks!
[EDIT]
I want that indeed, but I tried to copy it to my SystemUI.apk with no succes. The button appears, but has no functions. When clicking on it, the background changes but it doesn't clear the notifications. Also when I added the ids of the button apktool won't even build the apk because of errors. I have no idea how to implent it working. Hope you can help me.
Greeting,
DarrellDD
you don't have to add a new id. my example only move the button to notification header and add a custom image. the id (@id/clear_all_button) and all other elements remains the same.
I mean the drawable ids in the public.xml But I saw they automatticly added when building the apk. Thanks anyway! You really helped me editing my phone!
Sent from my LG-E400 using xda app-developers app

Categories

Resources