1

I want to repeat specific rectangular area at centre of png drawable instead of repeating the whole image using android:tileMode="repeat" . If I 9 patch it will get stretched .any solution ?

Himanshu
  • 31,810
  • 31
  • 111
  • 133
Arun_005
  • 11
  • 3

1 Answers1

0

Either, offline create a new PNG that only consists of the area you want, or dynamically, create a new Bitmap from the area you want and use this image for a drawable.

Ridcully
  • 23,362
  • 7
  • 71
  • 86