[Q] Changing button background in android - General Questions and Answers

Hi everyone,
i have a Samsung Galaxy Ace with Infinity ROM installed.
I'm trying to make darker backgrounds for buttons because often the button text is not legible because of the poor contrast between the text color and the button background.
So i extracted the framewrok-res.apk and edited btn_default_normal.9.png and btn_default_small_normal.9.png with GIMP, then i repacked the framework-res.apk and pushed it in the device with adb.
The problem is that now the buttons background is not being stretched correctly.
Here an example:
{
"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"
}
As you can see, the button "Attiva archivio USB" isn't correctly stretched and it doesn't cover the entire lenght of the text. How can i fix this?
Thank you
(Hope this is the correct section)

You would have to edit some png images by using apk manager, the background bar you would have to stretch using Gimp or PhotoShop
Sent from my HTC_A510c using XDA App

crazyking_max said:
Hi everyone,
i have a Samsung Galaxy Ace with Infinity ROM installed.
I'm trying to make darker backgrounds for buttons because often the button text is not legible because of the poor contrast between the text color and the button background.
So i extracted the framewrok-res.apk and edited btn_default_normal.9.png and btn_default_small_normal.9.png with GIMP, then i repacked the framework-res.apk and pushed it in the device with adb.
The problem is that now the buttons background is not being stretched correctly.
Here an example:
As you can see, the button "Attiva archivio USB" isn't correctly stretched and it doesn't cover the entire lenght of the text. How can i fix this?
Thank you
(Hope this is the correct section)
Click to expand...
Click to collapse
Editing .9.pngs are not the same as editing a normal png. It has to be decompiled first, then edited, then recompiled. There are a few TUT on how to edit a .9 out there. It is very time consuming. Also look for the tool of .9 draw tool. once deompled you ill see the diff from a normal png.

Yeah now i'm using the draw9patch and xUltimate compiler, but i think that i'm not really understanding how to put patches in draw9patch...

Related

[Help Please] Simple Graphics Request

Hi
I am using the Blackberry Redux theme and have a problem.
The problem is that the phone in the upper-left hand corner allows me to choose the volume profile I would like, however, there is no icon for Vibrate Profile. I have tried to contact the design, but have had no luck.
I also tried to create my own (spent 15 minutes) in Paint, but that didn't turn out transparent and ruined the whole theme.
Is there anyway someone can take one of the images below and change it to vibrate? It does not have to be fancy or anything. The first one is for "Normal/Loud" profile and the second one if for "Silent" profile.
I would greatly appreciate is someone can help me out with this so the theme can be close to perfect. Thank you very much in advance to anyone who helps me. Thank you!
{
"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"
}
Possible suggestion:
Since the first image (currently used for Loud/Normal Profile) already looks like its for vibrate, mayone someone can change it so that the noise lines are coming out of the earpiece and mouthpiece. Then i can just use that for the Loud/Normal Icon and then use the current Lound/normal icon for vibrate.
Just a suggestion. i am not picky, I just want to finish making the theme perfect before school starts and I don't have any time to change my phone around. Thank you.
You need paint.net (free) or photoshop (not free) or gimp (free) to edit images that allow transparency.
PS i recommend paint.net
i'm sorry but i don't really have th time.
you can use any software that supports the use of the png format.
just 2minutes in Fireworks
hope that is okay!
tomoffel said:
just 2minutes in Fireworks
hope that is okay!
Click to expand...
Click to collapse
Thank you so much!
I tried it, but it isn't transparent.
Is there anyway you can make it .PNG format? thank you
it actually IS transparent.. but it's not a regular JPG file.. it's an arithmetic jpeg.. which is rarely supported.
you can use photoshop elements to decode it.
reup in a few minutes try it as png, dunno why it is a jpg..
http://img113.imageshack.us/img113/7316/profilevibratexf8.png
tomoffel said:
reup in a few minutes try it as png, dunno why it is a jpg..
http://img113.imageshack.us/img113/7316/profilevibratexf8.png
Click to expand...
Click to collapse
Perfect! Thanks!

[Need Help] Making my own widgets/skins for SPB 3.5.x

Hey there!
I'm currently busy with making some skins for the digital clock in SPB, but I really don't know how to make my PSD file into a real widget skin.
For example I have made this image:
{
"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 hope anyone can help me with this or does know a guide how to make it into a skin. This way I can provide you guys lots of skins/widgets!
Thanks in advance!
Just watch in the folder where the standard skin file is.
So you can see how you have to "slice" etc the pics.
Thats the way I do it with skinning programs.
I dont have SPB so I cant say you an exact way but so I would do it.
Regards
The easiest/best thing to do would be taking a direct look at how the standard spb widgets are made
The dat files are just zip files renamed to .dat so you can easily look what's inside with just winzip (the password for all of them is b0fm18zq)
Ok, that is great! Thanks.. The only thing I don't get is how do I use transparent in .bmp? I see all the red and black stuff at parts that are transparent in the SPB shell?
So my question is now, how do I add transparecy to .bmp files and how do the 'mask' images work?
Thanks in advance!
Moved as not theme release.
PhysicalMagic said:
Ok, that is great! Thanks.. The only thing I don't get is how do I use transparent in .bmp? I see all the red and black stuff at parts that are transparent in the SPB shell?
So my question is now, how do I add transparecy to .bmp files and how do the 'mask' images work?
Thanks in advance!
Click to expand...
Click to collapse
Transparency is handled through the mask bmp, the darker the areas on the mask the more transparent the corresponding areas on the resulting image
Mask needs to be a grayscale bmp
Images (most of them) need to be 16bit bmp
Do not use 24 or 32 bit bmps 'cause they're gonna disappear during swiping

[Modding] Help with transparent notification bar + theme preview

I try to make my theme but I have a problem.
I want the notification background transparent but I don't know how to modify it.
I try different way but not success.
Anyone can help me?
Thanks
{
"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"
}
Small preview of the theme I working
I have also % of battery and trackball wakeup (thanks to eug89 for compile java)
that top grey part is called title_bar_portrait.9.png and is located on framework-res.apk. the part you want to make transparent is called status_bar_background.png and is also located in framework-res.apk
not sure if you have edited .9.pngd before but it you have to do more than just replace the image for it to look right. also im not sure if that part can be made transparent in froyo as i am currently having trouble with it. however if your making the theme for CM just adjust the transparency in photoshop, gimp etc
hope that helped
Have anybody get the status_bar_background.png transparent on FroYo ROMS?
Ok.
So the problem is froyo
Formel-LMS said:
Have anybody get the status_bar_background.png transparent on FroYo ROMS?
Click to expand...
Click to collapse
i dont think so. froyo doesnt seem to allow the image to have any transparency
Theres a Xeudoxus app that patches services.jar to enable that transparency. Didn't find exact details as too which particular file (s) are affects (for morphs). I hate when people do that (hiding details ), I will investigate after work.
For more info see this thread: http://forum.xda-developers.com/showthread.php?t=700703
Thanks Britoso.
Now I have the theme with transparent.
Now I have to fix the bar "Notification" because are also trasparent.
Also I have to investigate why It have some crash when I use metamorth for apply theme.
edit.
perfect all I want.
I have only investigate for crash when using metamorph.
Thx britoso from that other thread and xuedoxus for the app
finally got it working on my theme(frf91)
pretty cool theme!

Theme questions

I am making myself a theme and was wondering if anybody knew which files changed these two things.
-Box when moving widgets
{
"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"
}
-Title background for folders (apps organizer)
Sorry I can't be more help immediately but I can tell you the green widget moving box will be a .9.png and will probably be pretty small.
Obvious places to start would be in the 2 framework apk's but they may well be somewhere in system/app too. I'd look in anything widget related (downloader, updater, etc) and I'd look in rosie.apk too..
again, sorry thats just a couple shots in the dark but I'd like to know too. I'll poke around some tonight and see if I can find them
Yeah I figured it was going to be a .9 file, probably 1px but I just can not find them.
rujelus22 said:
Yeah I figured it was going to be a .9 file, probably 1px but I just can not find them.
Click to expand...
Click to collapse
Well it would probably be a minimum of 9x9, and it looks like it has rounded corners so maybe more than that. Also, both of these things might not be pngs. Could be simple xml drawings.
I was thinking maybe xml also. are there any good tutorials on how to edit the xml's?
rujelus22 said:
I was thinking maybe xml also. are there any good tutorials on how to edit the xml's?
Click to expand...
Click to collapse
Use APK manager to decompile the apk, it'll output readable/editable xml files. I don't have the link on me but a quick search in the forums will bring it up.
AwardTour, have you recompiled a framework apk with AppManager yet? I tried but kept getting an error when it got to the manifest.
OP, here is a link to Apk_Manager_4.8. I can't offer any advice on editing xml, yet.. I just decompiled and saw a readable xml for the first time a couple days ago it was cool
apktool
http://code.google.com/p/android-apktool/
makes altering apks a snap.
I have looked around in the XML's and png and still can not find these for the life of me. I have a few more I can not find either. Any help on any of these would be greatly appreciated.
1- Progress bar
2- Calendar Item Color
3- Phone Highlight Color

System Colors?

hi @all
i'm using the latest energy rom from here. I was trying to change the colors of outlook and the rest of the original windows mobile stuff from white background to black background and white text with sktools.
So far, so godd but i have the problem, that now the contact list is white background/white text just the highlighted one is ok. in SMS view via outlook it works great and even some menus are good some others not working that way but i think these are sense menus which would be ok for me. For example the file manager is also as i like it. what to do to solve this problem is there a solution? or maybe an easier way to change just this white background into black and the main text into white?
you probably will not able to do, wm background color value is used for others screens, I mean: when you set a black BG ,the same value is used for something else (can't remember which element.. text or highlight).
then every black background has this side effect.
the best you can reach is this dark grey combination (from Artemis rom thread and a WP7 variation) that let you read the text in all situations
{
"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 also play with the attached UITweaker , not every option work on wm6.5 but the most of them do, and make all your tests.
for more infos check out the windows mobile forum and look for skinning WM6.5 threads
thanks alot! i got an compromise now which is working well so far. with sktools i swapped the color values and somehow now it works great even the highlighted stuff is ok so i found nothing which is incorrect so far even the settings menu or so it's fine don't know why it wasn't working the first time i did that. i would go over to android but i need the garmin app which is not working under it.

Categories

Resources