Slicer icon indicating copy to clipboard operation
Slicer copied to clipboard

wrong Android 9-patch export

Open illustree opened this issue 7 years ago • 3 comments

atm when exporting 9-patches, the “patches” are scaled. Actually for Android they must be always 1px width or height. In the Slicer export e.g. the XXXHDPI patches are 4px which makes them visible in the implementation as Android only takes the 1px outside. Please can you fix this issue? many thanks

  • I created my patches in the 100% size file in a group called “patch”
  • all patches named “patch"
  • the content is in the group “content”
  • the main group is called assetname.9

illustree avatar Mar 02 '17 11:03 illustree

Hey there,

Sorry for the late reply :O Seems like it should be exporting them as you expected, any chance you can share a sketch file with those layers for me to debug?

Thanks!

ozzik avatar Jun 18 '17 17:06 ozzik

Hi Ozzik, thanks for looking into that issue ... so in the the expected Android Export the patches in all resolutions would be 1px wide or high ... atm they are scaled up and the 9-patch won't work. Please also add some description for that exporting of nine-patches to Github main page of Slicer (what sub groups are needed etc) by any chance. cheers, Dimitri

ninepatch with slicer.zip

illustree avatar Jun 27 '17 08:06 illustree

Any update on this?

hfahmy avatar Aug 26 '18 12:08 hfahmy