sketch-android-assets icon indicating copy to clipboard operation
sketch-android-assets copied to clipboard

Create 9-patch images

Open keegangreen opened this issue 10 years ago • 3 comments

It would be really cool (if possible) if you could create 9 patch assets too. The reason it doesn't work now is that the black bars on the side are scaled too, making them not always 1px. Maybe there is a way you could use the slice name to tell if the user intends the asset to be 9 patch.

keegangreen avatar Apr 01 '14 06:04 keegangreen

Nice idea!

I plan to have a look at extending the plugin once Sketch 3 has been released, I'll keep your suggestion here in the meantime. Thanks!

zmalltalker avatar Apr 01 '14 08:04 zmalltalker

Hey there, I know its not a perfect solution, but this tool works great: http://romannurik.github.io/AndroidAssetStudio/nine-patches.html

The only thing is that the raster image will be scaled. I use it to get the right dimensions for my 9-patch images.

ghost avatar Jul 17 '14 13:07 ghost

Muito bom isso ai.

damiaovieira avatar Feb 25 '16 23:02 damiaovieira