New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
View Poll Results: did you succed in editing .9 png images and did u got it working on g1 ?
yes, i did got it properly working in my g1 8 30.77%
no, i edited it but it looped at the boot screen 2 7.69%
never tried touching those .9 png files/images 16 61.54%
Voters: 26. You may not vote on this poll

 
Post Reply+
Tip us?
 
sangeet.003
Old
#1  
Recognized Developer - OP
Thanks Meter 4
Posts: 206
Join Date: Jan 2009
Location: Badlapur

 
DONATE TO ME
Default has anyone successfully edited the .9 images

has anyone successfully edited the .9 images and got them working in their themes ?

Plz reply the poll too...

Current Phone: Samsung Galaxy Note II
Current ROM Status: Rooted Stock

Secondary Phone : Android Developer Phone 1
Current ROM Status : Rooted Stock 2.2.1

Ported HoneyComb to HTC Dream (G1)

|| Google+ || Twitter ||
 
doubleokneegro
Old
#2  
Senior Member
Thanks Meter 5
Posts: 558
Join Date: Jul 2008
Location: Philadelphia
check out teknotiq, he explained some of the information to me about his work with editting .9 pngs... also most themes such as BUUF, Fadte to Blue, Stericson's themes, all have .9 pngs edited... you can check with them as well
 
sangeet.003
Old
#3  
Recognized Developer - OP
Thanks Meter 4
Posts: 206
Join Date: Jan 2009
Location: Badlapur

 
DONATE TO ME
I too have got them successfully edited...
i have made this thread just to know wheather .9.png images are changed widely ?

so thanks on your reply....

want more people reply....

Current Phone: Samsung Galaxy Note II
Current ROM Status: Rooted Stock

Secondary Phone : Android Developer Phone 1
Current ROM Status : Rooted Stock 2.2.1

Ported HoneyComb to HTC Dream (G1)

|| Google+ || Twitter ||
 
brandenk
Old
#4  
brandenk's Avatar
Senior Member
Thanks Meter 38
Posts: 1,117
Join Date: Aug 2007
Location: San Diego
They can be changed but they always break, I have never had one loop me at the boot screen. Some look ok and others dont, its just trial and error.
Samsung GS3 ← Evo 3D ← Evo 4G ← Nexus One ← MyTouch ← G1 ← HTC TyTN
 
damnitpud
Old
(Last edited by damnitpud; 11th February 2009 at 02:44 PM.)
#5  
damnitpud's Avatar
Senior Member
Thanks Meter 3
Posts: 475
Join Date: Jul 2007
Location: RI
I've noticed the best way to change these .9.pngs is to give them a 1 pixel border. The buttons for instance, the inside is one color and the border should be a 1 pixel black or whatever color of the theme. You have to erase the corners to, if not they stretch weirdly.
Attached Images
 
 
Stericson
Old
#6  
Stericson's Avatar
Retired Senior Mod / Elite Recognized Developer - Godfather of Android Theming
Thanks Meter 350
Posts: 1,187
Join Date: Nov 2008
hey pud, try editing the clear notifications button and change its color, without it breaking. Then send me a pic. I was stuck on this forever....
Want to know what I've been up to lately? Click here


 
kron2
Old
#7  
kron2's Avatar
Senior Member
Thanks Meter 1
Posts: 475
Join Date: Mar 2008
Quote:
Originally Posted by damnitpud View Post
I've noticed the best way to change these .9.pngs is to give them a 1 pixel border. The buttons for instance, the inside is one color and the border should be a 1 pixel black or whatever color of the theme. You have to erase the corners to, if not they stretch weirdly.
i do it the same way
http://forum.xda-developers.com/image.php?type=sigpic&userid=909909&dateline=12239  47143HTC Incredible
 
sangeet.003
Old
#8  
Recognized Developer - OP
Thanks Meter 4
Posts: 206
Join Date: Jan 2009
Location: Badlapur

 
DONATE TO ME
Quote:
Originally Posted by Stericson View Post
hey pud, try editing the clear notifications button and change its color, without it breaking. Then send me a pic. I was stuck on this forever....
I ll try doin that and give it to u...

Current Phone: Samsung Galaxy Note II
Current ROM Status: Rooted Stock

Secondary Phone : Android Developer Phone 1
Current ROM Status : Rooted Stock 2.2.1

Ported HoneyComb to HTC Dream (G1)

|| Google+ || Twitter ||
 
damnitpud
Old
(Last edited by damnitpud; 13th February 2009 at 08:49 PM.)
#9  
damnitpud's Avatar
Senior Member
Thanks Meter 3
Posts: 475
Join Date: Jul 2007
Location: RI
Default I figured out the .9.pngs! The procedure is here! Updated: 02/13/09

::New:::
If you have downloaded the SDK and Eclipse, you have all the tools you need, If not you should grab them and follow Google's guide.

This process is somewhat a pain in the butt, but worth it. You need to take the .9 off of the file name that you want to change, then drag it into the draw9patch tool from the Android SDK(in the tools folder) Here is some info about draw9patch. Pay attention to the Note in the middle of the page. Once you have your 9patch file edited and saved you need to compile it, the lines will remain on this .9 image until it is compiled with eclipse. you need to open a project, or create one in eclipse, drag the .9.png into the drawable folder, then right click your project folder and choose android tools/export unsigned application package. Once this is done, you want to open the apk with WinRar and pull your .9.png files out. you will notice the lines are gone! That is all, I am sure people who have not downloaded the SDK and Eclipse yet might have problems understand this process, but I will try to help you. I am not a guru with Eclipse but i know enough to get by.

Good luck and happy stretching =)

Playing with the SDK today, i found in "SDK\tools\lib\res\default\drawable" all of the .9.pngs have the black lines intact. These could be good for learning the best way to stretch these images. Also the xmls have not been converted to binary, so it might make for some interesting hacks for themes.

Here is a screen shot of the draw9patch tool. The bottom and right sets the content area and the left and top set the stretch area.



I am not sure if i am going to disclose this info just yet (because of the competition) but i wanted to let everyone know its been figured out and we will all know very soon!

i am uploading some screen shots now with some perfect buttons! Anyone who has used my theme knows the buttons looked somewhat messy, well no longer will they be.

 
CaptainMorgan128
Old
#10  
Junior Member
Thanks Meter 0
Posts: 17
Join Date: Feb 2009
Quote:
Originally Posted by damnitpud View Post
I am not sure if i am going to disclose this info just yet but i wanted to let everyone know its been figured out and we will all know very soon!

i am uploading some screen shots now!
way to go! excited to see some sshots!


XDA PORTAL POSTS

Forum Added for the Samsung Galaxy Mega

What do you do when the Galaxy Note line is simply not big enough? You get theSamsung Galaxy Mega. … more

Voice Control Your Phone with Tasker and AutoVoice – XDA Developer TV

XDA Developer TV Producer Kevin set up his phone to respond to … more

Guide to Take Better Control of Your Volume Levels

Would you like to know one of the things that really annoys me on a daily basis? Tough, … more

Get the Android 4.2.2 Status Bar on Your Gingerbread-Based Samsung

There are still quite a few of folks who run Gingerbread on their … more