Quick Question - G1 Android Development

How do i change the color of a image without editing it in ms paint. Like for example if i wanted to change the color of the g1 android robot which is green how do i change it to a different color without ms paint?

cannon1616 said:
How do i change the color of a image without editing it in ms paint. Like for example if i wanted to change the color of the g1 android robot which is green how do i change it to a different color without ms paint?
Click to expand...
Click to collapse
real men edit images with a hex editor
Or you could try something like "The Gimp". Think "Photoshop" but open source.

First I don't know , but I'm pretty sure any good Image editor could do it. Like Paint Shop, Photo Shop, Picasa(Maybe)
Second why don't you want to use MS Paint?
What's wrong with Andy being green

Related

Separator lines in today screen

Hi, I'm trying to hide (not change color) the separator lines in today screen on my pda. Someone knows how to do?
Sorry for my poor english.
Hi!
--
RC Mod - #124
----
Bye!
If you are talking about orizontal lines between different today plug-in, I'm looking for the same answer.
From what I read, I figured out it isn't possible... and my girlfriend, the picture of her that I use as background, still has a purple linee going trough her eye!!!
N1kko said:
If you are talking about orizontal lines between different today plug-in, I'm looking for the same answer.
From what I read, I figured out it isn't possible... and my girlfriend, the picture of her that I use as background, still has a purple linee going trough her eye!!!
Click to expand...
Click to collapse
It is possible if you use Tweak2K software. Choose system colour Today line and way u go!!
Another method is use ThemeGenCE an application to edit and create Themes on your PC. Just Google for those software.
edywanwan said:
It is possible if you use Tweak2K software. Choose system colour Today line and way u go!!
Another method is use ThemeGenCE an application to edit and create Themes on your PC. Just Google for those software.
Click to expand...
Click to collapse
That doesn't hide them now does it? It only changes the colour.
with ultimate launch you can do this ... just select it as the only plugin and load the other ones within ultimate launch
helterskelter said:
That doesn't hide them now does it? It only changes the colour.
Click to expand...
Click to collapse
Yes u are right. Have to try many times to get the right match, but if the theme is colourful then there it goes again !Same thing
therealholg said:
with ultimate launch you can do this ... just select it as the only plugin and load the other ones within ultimate launch
Click to expand...
Click to collapse
This sound interesting.
Anyway you can load HTC Home within UltimateLaunch???
Hiding the seperator lines ...
have you tried editing the xml file and setting the border width at "0" (e.g.,
b-border-color="transparent" b-border-width="0") ?
is anyone willing to mention which xml file this referrs to?
Colored Lines
Not certain if PPC's are too different from Smartphones, but in the "Application Data\Home" folder, you'll find the xml files used to drive the GUI interface of the Home/Today screen. These are completely editable - within these files you should find what I referenced above.
search for an app called UI TWEAKER .... it is a little complicated but you can do it and a lot of other cool stuff
here the solution
for me this works (on WM6.5)
completly invisible separator line, completly satisfation
http://forum.xda-developers.com/showthread.php?t=475040
Here's a cab. Soft reset and enjoy.

HTC Touch Pro Camera Templates

Hi,
I thought I would be able to crack this one for myself. But somehow I can't get it to work.
I would like to make some Camera Templates of my own. However the "how to" descriptions I have found won't work even though they should.
This is what I have done:
I made a animated gif (using Gimp I was able to see the structure of the deliverd templates)
The first picture (in the animated gif) is the template with a black area for the actual photo
2 The second layer is an empty transparent layer
3 This is a transparent layer with a a black area for the actual photo surrounded by white.
What happens is first I don't see any open arears while taking a picture. After taken a picture anyway the photo will be shown but not in the arears that I want wanted it to bb.
What am I doing wrong?
I have googled for two nights now and I have tried several ways to create this (GIMP and Photoshop CS3) I'm on some kind of track but is it the right one? This shoud have been so easy to create right?
Regards,
AJ
I cracked it ;-)
The secret is in how you save it.
This is how you do it:
Make sure that the background is set on transparent.
Take any picture and cut out for example a hole for the face by making this area black.
Make a second layer and make the same area black
Now draw a white line around this black area (not sure if you really need to do this so try it out)
Now create an animated gif that only runs once.
Now the big secret, I use Photoshop for this example but you'll probably regonize these settings for other programs
color reduction: Windows
dither algorythm: Pattern
Transparency: No transparency dither
Interlaced
Colors: 256
Matte (I made this black play around with it to see what happens)
Web Snap 0% (if you change this you get a more ghostly effect)
Regards,
AJ
These kind of things are very easy to make.
Just go to a website. Print screen it and past it in the 640 x 480 canvas. Then modify it until it is to your satisfaction.
Use the rectange tool to create the black area that will be used as the hole for the picture.
Now duplicate the rectange and go to "Layer Style" choose "Stroke" and make a white outside stroke of 1 pixel.
Now all you need to do is create an animated gif.
Go to "Windows" and choose "animation"
Make 2 frames in the animation box.
The first one is the picture with the black area
The second one is nothing but the black area with the white stroke, and save this as an animated gif.
color reduction: Windows
dither algorythm: Pattern
Transparency: No transparency dither
Interlaced
Colors: 256
Matte black
Web Snap 0%
Regards,
AJ
this is awesome lol. My wife will love the baby pictures with a frame.
@mallman
Perhaps you should show this one instead
ajvdn said:
@mallman
Perhaps you should show this one instead
Click to expand...
Click to collapse
Hi, I'm sorry for this noobish question, but where do these things go?
I saw somewhere on the internet that there should be a couple of "beeldthema's" or templates standard on this phone, but I only have the one of "Woman best buy top 10" and "MAN Person of the year" (this is 1 template with 2 pictures)
Is there a website where i can download these templates the other touch pro's have? I saw there was one on some Touch Pro's with a cook and some others too.
Thanks in advance
Hi, Ali3nSt0rm
On the Touch pro, and my gues is on the Diamond as well these things go in "my documents" "Templates"
(dutch)of "mijn documenten" en waarschijnlijk heet het in het Nederlands ook template en anders iets van Beeldthema ofzo.(/dutch)
Or you could just search your device for gif files and you'll find the spot where to put them.
For the internet:
Search for "camera templates" and you'll find lot's of free templates (like this one: http://xda-v.6te.net/)
You can also Google: [camera template site:xda-developers.com] and find a lot more templates.
Regards,
AJ
HTC PRO photo templates...
What do I have to do so I can get a photo template to you, you know like putting someone's face in a magazine cover or in a landscape, etc...????
Please help me,
Thanks,
Mark
ajvdn said:
These kind of things are very easy to make.
Just go to a website. Print screen it and past it in the 640 x 480 canvas. Then modify it until it is to your satisfaction.
Use the rectange tool to create the black area that will be used as the hole for the picture.
Now duplicate the rectange and go to "Layer Style" choose "Stroke" and make a white outside stroke of 1 pixel.
Now all you need to do is create an animated gif.
Go to "Windows" and choose "animation"
Make 2 frames in the animation box.
The first one is the picture with the black area
The second one is nothing but the black area with the white stroke, and save this as an animated gif.
color reduction: Windows
dither algorythm: Pattern
Transparency: No transparency dither
Interlaced
Colors: 256
Matte black
Web Snap 0%
Regards,
AJ
Click to expand...
Click to collapse

need colorblind app

point camera at color,
push button,
phone reports color it "sees"
any takers?
Hell yeah, great when I'm shopping and can't decide if that damn shirt is purple or blue, or red or green
this would actually be a lot more complicated than your statement makes it out to be.
unless the photo is of a solid color with no shading or highlights of any kind, the camera will recognize all possible variations in all shades of the one color.
A programmer would have to call every highlight and shade of a single color as "RED"... I/E: Sangria, Burgundy, Rose, Crimson, etc would all need to just be "RED"...
rbrainard said:
this would actually be a lot more complicated than your statement makes it out to be.
unless the photo is of a solid color with no shading or highlights of any kind, the camera will recognize all possible variations in all shades of the one color.
A programmer would have to call every highlight and shade of a single color as "RED"... I/E: Sangria, Burgundy, Rose, Crimson, etc would all need to just be "RED"...
Click to expand...
Click to collapse
But I'm colorblind! How am I supposed to tell if the traffic light is green or red if I don't have this app!!
just2good4u3434 said:
But I'm colorblind! How am I supposed to tell if the traffic light is green or red if I don't have this app!!
Click to expand...
Click to collapse
Green is always at the bottom...
rbrainard said:
this would actually be a lot more complicated than your statement makes it out to be.
unless the photo is of a solid color with no shading or highlights of any kind, the camera will recognize all possible variations in all shades of the one color.
A programmer would have to call every highlight and shade of a single color as "RED"... I/E: Sangria, Burgundy, Rose, Crimson, etc would all need to just be "RED"...
Click to expand...
Click to collapse
Well, yes it is complicated, but narrowing the area of concern (like our own eyes' center of visual acuity) down to the central few hundred pixels of the photo, and then applying a histogram to the colors, it should be fairly obvious what is the dominant color. you could get exotic and report fancy color names (periwinkle). Even neater, interface this to voice, so the phone says "red", etc...
just2good4u3434 said:
But I'm colorblind! How am I supposed to tell if the traffic light is green or red if I don't have this app!!
Click to expand...
Click to collapse
Could you imagine using an app like that to decide wether to stop or not. "Oh the light changed, where is my android? Hey why is that car pulling out in front of me? Will this dang program ever load? (after 5 nano seconds)" Nope, don't think this type of smartphone app would be effective. Plus for driving, the positional reference would be better (thanks to earlier poster).
i had seen an app on the market that claimed to tell you the main color the camera picks up... ill search tonight see if i can find it again
ok by searching camera color i have found a few
Color Detector uk 1.19
What Color? us $0.99
Color Blind? us $1.99
Retina euro 1.00
the one i had found before was a free app, guessing it was one listed above in beta stages. hope this helps you
I found "This Color What color? Free".
This app gives you the HEX code of the color that the camera has on the center of the screen. Maybe someone can build us an app to translate that hex into an audible color name.
Edit: Go to AppBrain and search for "camera color". You'll fine at least 5 good apps that you can try. I will be testing them tomorrow!!!

Hex Codes For Colors

This is being posted for people who want to edit the colors of certain parts of their phone. This is simply meant as a resource for those folks. This IS NOT a [How To] thread, and if you don't know what to do with these links, this is not the place to ask. I simply wanted an easily searchable resource here on XDA for those who need it. Don't know what they are for? You don't need it. Yet
To those that do need this, Happy Hex-Editing!
Dithering:
http://www.2createawebsite.com/build/hex-color-chart-grid.html
Non-Dithering:
http://www.htmlgoodies.com/tutorials/colors/article.php/3479001
tejasrichard said:
This is being posted for people who want to edit the colors of certain parts of their phone. This is simply meant as a resource for those folks. This IS NOT a [How To] thread, and if you don't know what to do with these links, this is not the place to ask. I simply wanted an easily searchable resource here on XDA for those who need it. Don't know what they are for? You don't need it. Yet
To those that do need this, Happy Hex-Editing!
Dithering:
http://www.2createawebsite.com/build/hex-color-chart-grid.html
Non-Dithering:
http://www.htmlgoodies.com/tutorials/colors/article.php/3479001
Click to expand...
Click to collapse
What do I do with this??
Can you show me how to color certain parts of my phone. I'd like to color my entire physical phone blue... how would I go about doing this using these Hex codes?
/s
pseudoremora said:
What do I do with this??
Can you show me how to color certain parts of my phone. I'd like to color my entire physical phone blue... how would I go about doing this using these Hex codes?
/s
Click to expand...
Click to collapse
step one: print copy of hex codes
step two: place phone on top of large, flat surface
step three: cover phone with printout of hex code chart, colorside-up
step four: Hit phone repeatedly as hard as you can with a hammer* until desired saturation is achieved.
*BE CAREFUL! ONLY hit the color that you intend to transfer to your phone, otherwise you may have unintended results!
tejasrichard said:
step one: print copy of hex codes
step two: place phone on top of large, flat surface
step three: cover phone with printout of hex code chart, colorside-up
step four: Hit phone repeatedly as hard as you can with a hammer* until desired saturation is achieved.
*BE CAREFUL! ONLY hit the color that you intend to transfer to your phone, otherwise you may have unintended results!
Click to expand...
Click to collapse
Hahahahaha.
What should I do for transparency?
pseudoremora said:
Hahahahaha.
What should I do for transparency?
Click to expand...
Click to collapse
Print it on Saran Wrap
i know you said not to ask about these things, but i thought it best to ask here over posting a whole new thread (and this came up in the search results...so...yeah...)
i know vaugly about hex codes and the colors, mainly from HTML structure, but im not to familiar with how android implements it.
my question is simple:
green. the browser loading, highlighted ANYTHING, the box around a floating widget, alllll the greeeeen; is this a global hex edit, or does it have to be stripped down piece by piece, app by app, widget by widget.
i ask because in regawmod, everything that was green was grey. i really liked that, and it proved it was possible, but i also know that ALOT of dev'ing went into that theme (thanks neb!!) and that the simpliest of changes to the theme messed with the whole lot. implying that it wasnt a matter of changing on line, but many. is this fact?
tia&sorry for the clutter :-D
Short answer is no, there is no global hex code that affects all the highlights. There are many png's that must be edited to change all the green to another color. While there certainly is SOME hex involved, it is mostly super-tedious PhotoShop work.
tejasrichard said:
it is mostly super-tedious PhotoShop work.
Click to expand...
Click to collapse
Yup, basically, me and neb photoshopped pngs for days, and I had to recompile every single .9.png in Eclipse for it to work after all of the changes. I actually did no hex editing for the themed RegawMOD, BUT there are a few things I'm going to be adding that involve that when I get back into this soon.
thanks for the info guys
geuss ill learn to love the green until your next release dan
you could just take all the files of one color and batch hue change them in photoshop and then take all the white files and batch throw a new layer on, paint it green and then set it to overlay...and then just repatch all the 9-patch files...
venumx said:
you could just take all the files of one color and batch hue change them in photoshop and then take all the white files and batch throw a new layer on, paint it green and then set it to overlay...and then just repatch all the 9-patch files...
Click to expand...
Click to collapse
i thought the green was dictated by hex, not individual images.
im straight, reg and neb are crazy for sitting there for days and turning probably 200 images grey lol.
mountaindont said:
i thought the green was dictated by hex, not individual images.
im straight, reg and neb are crazy for sitting there for days and turning probably 200 images grey lol.
Click to expand...
Click to collapse
a quick secret about the changing green to grey, the "change to black and white" option is VERY fast but still, took a long time to do, then 9patch and recompile them.

[MOD][PORT][THEME] Notification Menu Power Control Widgets for Sense - 3.70 - THEMES!

First of all, major thanks to JsChiSurf for his amazing work on this port!
http://forum.xda-developers.com/showthread.php?t=877003
This is a separate thread for themes of this mod.
I've always wanted a clean, slick looking shade on the notifications pull down and thanks to JsChiSurf, it's pretty easy to theme it.
Here are two that I made today. I haven't gotten around to skinning the buttons yet though.
Try these, static images don't do them justice, it's neat seeing the way they move. For more details on flashing these, please refer for JsChiSurf's thread above. These already contain the updated 2.1.1 services jar.
After zipping, you can use this:
http://circle.glx.nl/
to restore your battery %. Thanks chogardjr!
PCS_v2.1.1 Brushed_Metal_Grate_Small_Circular_Light
PCS_v2.1.1 Brushed_Metal_Grate_Small_Circular_Dark
PCS_v2.1.1 Brushed Metal Grate Small Circular Dark Industrialized
PCS_v2.1.1 Brushed_Metal_Grate_Small_Dark_Industrialized_Android
PCS_v2.1.1 Brushed_Metal_Grate_Small_Dark_Industrialized_Android_v2
PCS_v2.1.1 Brushed_Metal_Grate_Small_Light_Industrialized_Android_v2
Neo3D said:
First of all, major thanks to JsChiSurf for his amazing work on this port!
http://forum.xda-developers.com/showthread.php?t=877003
This is a separate thread for themes of this mod.
I've always wanted a clean, slick looking shade on the notifications pull down and thanks to JsChiSurf, it's pretty easy to theme it.
Here are two that I made today. I haven't gotten around to skinning the buttons yet though.
Try these, static images don't do them justice, it's neat seeing the way they move. For more details on flashing these, please refer for JsChiSurf's thread above. These contain the 2.1.1 services jar.
Click to expand...
Click to collapse
Wrong section to post this in, however, nice MOD.
Hi. How do i go about installing this mod please?
Jason Black said:
Hi. How do i go about installing this mod please?
Click to expand...
Click to collapse
jschisurf has intructions in his thread:
http://forum.xda-developers.com/showthread.php?t=877003
since he originally ported this, it's best to refer back to his thread.
oh, i already included his latest 2.1.1 services jar, so there's no need to flash twice.
SteelH said:
Wrong section to post this in, however, nice MOD.
Click to expand...
Click to collapse
Sorry Thanks for moving it to the correct section!
Using with Myn rom
I think the brushed metal version looks great and want to install, but would that change myn's black notification menu power control back to white or just add the metal screen drop down. I like the black notification menu power control over the white version.
Thanks
terence74 said:
I think the brushed metal version looks great and want to install, but would that change myn's black notification menu power control back to white or just add the metal screen drop down. I like the black notification menu power control over the white version.
Thanks
Click to expand...
Click to collapse
Hmm, honestly, I'm still new at this, so I don't know. Can you make a Nandroid image, then flash it and let everyone know?
terence74 said:
I think the brushed metal version looks great and want to install, but would that change myn's black notification menu power control back to white or just add the metal screen drop down. I like the black notification menu power control over the white version.
Thanks
Click to expand...
Click to collapse
yes, it will.
This is all very easy. If you have done this much then you can do it all. I have faith in you.
chogardjr said:
This is all very easy. If you have done this much then you can do it all. I have faith in you.
Click to expand...
Click to collapse
Is it just a matter of replacing the PNG's?
What PNG optimization do you recommend?
Also, how do you change the color of the fonts? I tried to look at the xml files but they open up as strange characters in any text editor I use (Notepad++, notepad, etc)
I also noticed that I lost my battery % after flash jschisurf's mod?
Thanks for your faith! The hardest part is knowing where all the PNG's are that need to be replaced!
Replacing png's is the noob way to do it. But is is the best place to start. You need to find apktool and learn how to use it. This will solve most of your problems with xml's. You also need a program called xml editor. This is my starters list. Here is a link you might learn a lot from.
http://developer.android.com/guide/developing/tools/index.html
As far as learning which png's, most are in the drawable-hdpi folder. Stay away from .9.png files untill your ready for them. Apktool will let you know when you make a mistake and where the mistake is to fix. Search youtube and do a lot of reading in this forum. It seems like a lot but after a while you will start to understand how the OS works and manages the files. Happy Themeing!
Neo3D said:
Is it just a matter of replacing the PNG's?
What PNG optimization do you recommend?
Also, how do you change the color of the fonts? I tried to look at the xml files but they open up as strange characters in any text editor I use (Notepad++, notepad, etc)
I also noticed that I lost my battery % after flash jschisurf's mod?
Thanks for your faith! The hardest part is knowing where all the PNG's are that need to be replaced!
Click to expand...
Click to collapse
Neo3D said:
I also noticed that I lost my battery % after flash jschisurf's mod?
Click to expand...
Click to collapse
Go to the sticky where the rom wiki is and at the bottom of that page you will find kitchens. One is for changing battery icons. That one is the easy fix to getting the icons you want into the his mod. But if you must know more, there are 3 xml files in the drawable folder that needs to be replaced to work with more png files than his stock ones. All I can say is APKTOOL and 7ZIP is the bread and butter.
Thanks for the awesome tips and info!
I found the .png for the toggle switches (stat_power_background.9.png) and yea, it must be some kind of special PNG cuz I measured it out to be 80x75 but rendered incorrectly.
Sweet, looking forward to learning more about Android!
BTW, just finished looking over that Android page and is this the APKTool you're referring to?
Android Asset Packaging Tool
Thats one of them. Here is a post made by a guy who compiled them all together for anyone who wants them. Use just the tools and use that link I gave to learn about them. APKTOOL is something made by someone here on xda but I can't find his link.
http://forum.xda-developers.com/showthread.php?t=882742&highlight=apktool
Neo3D said:
Thanks for the awesome tips and info!
I found the .png for the toggle switches (stat_power_background.9.png) and yea, it must be some kind of special PNG cuz I measured it out to be 80x75 but rendered incorrectly.
Sweet, looking forward to learning more about Android!
BTW, just finished looking over that Android page and is this the APKTool you're referring to?
Android Asset Packaging Tool
Click to expand...
Click to collapse
I found the website: FWI use v1.3.1 as v1.3.2 has bugs
http://www.google.com/url?sa=t&sour...8j1-bcnOf1Rz8k9fA&sig2=4MkcxzG_ROaqAr4-tWwlGw
As stated, just changing the .png's is the starting way of theming. Just make sure you do a nandroid backup before you go around messing with anything.
When you get comfortable with that, the next step is to look into XML. XML is generally easy to learn but can be complicated at parts. I don't really know of a good starting guide to XML for android but I'll post one if I see it.
NinePatches (*.9.png) aren't as complicated as people think. Once you get the concept of it, they are actually pretty easy. I'm creating a guide for it when I have time. But the basic concept is:
The NinePatch tool ads a 1px border to an image.
The new border can be colored black (except the 4 corners).
The left and top borders defines the stretchable area.
The right and bottom borders defines where content is allowed.
Like I said, I'm making a guide to it which will explain it better and have pictures.
chogardjr said:
Thats one of them. Here is a post made by a guy who compiled them all together for anyone who wants them. Use just the tools and use that link I gave to learn about them. APKTOOL is something made by someone here on xda but I can't find his link.
http://forum.xda-developers.com/showthread.php?t=882742&highlight=apktool
I found the website: FWI use v1.3.1 as v1.3.2 has bugs
http://www.google.com/url?sa=t&sour...8j1-bcnOf1Rz8k9fA&sig2=4MkcxzG_ROaqAr4-tWwlGw
Click to expand...
Click to collapse
ok sounds good, thanks!
Skullmonkey said:
As stated, just changing the .png's is the starting way of theming. Just make sure you do a nandroid backup before you go around messing with anything.
When you get comfortable with that, the next step is to look into XML. XML is generally easy to learn but can be complicated at parts. I don't really know of a good starting guide to XML for android but I'll post one if I see it.
NinePatches (*.9.png) aren't as complicated as people think. Once you get the concept of it, they are actually pretty easy. I'm creating a guide for it when I have time. But the basic concept is:
The NinePatch tool ads a 1px border to an image.
The new border can be colored black (except the 4 corners).
The left and top borders defines the stretchable area.
The right and bottom borders defines where content is allowed.
Like I said, I'm making a guide to it which will explain it better and have pictures.
Click to expand...
Click to collapse
I tried the 9patch app and it's pretty easy to use (I have experience with Illustrator and Flash). However, when I replace the original 9path file w/the new one, it shows the 1 px border on my android. Also, it seems to scale it wrong. I attached an example of what I'm talking about. I measured the bkg of the power toggles to be 80x75, but on the Android, it shrinks the graphic and you can see the 1 pixel border?
Looking forward to that guide!
Neo3D said:
I tried the 9patch app and it's pretty easy to use (I have experience with Illustrator and Flash). However, when I replace the original 9path file w/the new one, it shows the 1 px border on my android. Also, it seems to scale it wrong. I attached an example of what I'm talking about. I measured the bkg of the power toggles to be 80x75, but on the Android, it shrinks the graphic and you can see the 1 pixel border?
Looking forward to that guide!
Click to expand...
Click to collapse
are you talking about the background of the icons or the entire power area?
the background of the icons look fine to me even zoomed in.
if your trying to make the entire power area be the caution image, then there is an xml edit involved in res/layout-hdpi-v4/status_bar_expanded.xml. ill give you the exact change you need if you cant figure it out.
just keep in mind that ninepatch will only stretch images, not repeat.
Skullmonkey said:
are you talking about the background of the icons or the entire power area?
the background of the icons look fine to me even zoomed in.
if your trying to make the entire power area be the caution image, then there is an xml edit involved in res/layout-hdpi-v4/status_bar_expanded.xml. ill give you the exact change you need if you cant figure it out.
just keep in mind that ninepatch will only stretch images, not repeat.
Click to expand...
Click to collapse
ahh ok, i wasn't sure how the background of that area worked. so there's a background png and a background png for each widget?
i found this png: stat_power_background.9.png
which other one is for the background of the entire thing?
about the extra 1 pixel showing, you can see on the sides of the background a black vertical line. on 9patch png's, is the 1 px border that defines the 9patch actually supposed to show? i think there might be something wrong with my 9patch png's.
also, if you look at the screen cap again, there's horizontal white space above and below the toggle widget bkg graphics. is there a way to make them larger so they cover the white space? seems like android likes to shrink them to that size (in the screen cap) no matter how tall the image is.
Neo3D said:
ahh ok, i wasn't sure how the background of that area worked. so there's a background png and a background png for each widget?
i found this png: stat_power_background.9.png
which other one is for the background of the entire thing?
about the extra 1 pixel showing, you can see on the sides of the background a black vertical line. on 9patch png's, is the 1 px border that defines the 9patch actually supposed to show? i think there might be something wrong with my 9patch png's.
also, if you look at the screen cap again, there's horizontal white space above and below the toggle widget bkg graphics. is there a way to make them larger so they cover the white space? seems like android likes to shrink them to that size (in the screen cap) no matter how tall the image is.
Click to expand...
Click to collapse
Well theres a solid color using a ARGB hex (for the background of the power control area) and a png for each icon background by default. you can set it up so there is an image for each.
the stat_power_background.9.png controls each icon (as you may have guessed already)
i'm not sure why the power control area isnt a solid color.
when in the ninepatch editor, you are supposed to see the black extra pixel but when you load it on your phone, they should dissappear. i honestly dont see them in the ss you provided.
can you send me the framework-res.apk you are working on so i can see if everything is set up correctly?

Categories

Resources