• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root Draw Patch .9 ?

Jaay Dogg

Android Expert
Anybody know how to use the draw patch 9 tool ? I'm not sure what to do with it. Any help would be greatly appreciated. :confused:
 
Anybody know how to use the draw patch 9 tool ? I'm not sure what to do with it. Any help would be greatly appreciated. :confused:

Are you trying to edit already made ones or create a totally new one? If you are editing one that is already made just decompile the .apk that it is from and edit it using a photo editing software and don't touch the 1 pixel black border around it at all. If you are creating a new one then create your image then run the .9.patch tool through CMD (i'm not sure of the command...) and then draw where text can go either the bottom or top, and where same for height either left or right. I believe for text it is bottom and right and for the stretch points it's top and left. Here is an article/ tutorial on it. Draw 9-patch | Android Developers
 
I was trying to edit one, would it be easier to make my own .9 images ?

No it would be easier just to edit it. Just decompile the .apk using apk manager or apk tool or whatever and navigate to the .9.png you want to edit and open it up with paint.net (or whatever you use) and edit what you want to edit just don't touch the 1 pixel border around the img or it won't compile correctly.
 
Back
Top Bottom