Search code examples
androidnine-patch

How to create nine patch for this image with 2 shapes in the corners?


9 patch with 2 corners

I am finding difficult to to create 9 patch of below image without distorting square and quarter circle. I know if I reduce the height of both shapes ( which is currently half of main rectangle itself ) , it will not be that difficult.

Is there any way around to create 9 patch for such images without reducing their height ?


Solution

  • Only possibility that I see is to make height of left thing + height of right thing 1px smaller than height of whole image, and than to make 9-patch stretch just on that pixel in middle.