Android 9 patch package

I use the Android 9-patch tool to create my 9-patch images. I have to support several different resolutions and button states. This means that for one button with 9 patches I need to create 16 separate assets. I am currently generating each one separately, using the 9-patch Android tool interface, which is time consuming. If I could specify a point with 9 patches for a series of buttons that have the same properties, this will save me a lot of time. Is there an equivalent command line tool or other approach that would help.

thanks

+4
source share
3 answers

Here is a great tool I just found. I cannot verify its accuracy or stability, but it claims to do what you want.

+3
source

Well, there is no tool as you like, but you can easily create a small script (PHP, Perl) that would combine the two images (main image + 9-patch points) together. Or you can save the dots separately, and then load them into GIMP or Photoshop as layers and export as one final 9patch PNG.

0
source

Source: https://habr.com/ru/post/1439636/


All Articles