Forum Discussion

juantwc's avatar
juantwc
Visitor
10 years ago

9-patch image ... how exactly?

Hello

Im trying to set the backgroundUri of a Dialog.

Documentation says:

Usually this is a 9-patch image to support dynamic resizing


Documentation doesn't say:

How do i create this image to be recognised as a 9 patch? I tried this approach http://radleymarx.com/blog/wp-content/u ... guides.png but that doesn't work. What is the correct way? is there an example on how to do this?

2 Replies

  • Hi there,

    That is a good guide - one very important fact that is mentioned but not really emphasised is that the file name MUST end in .9.png

    Hope that helps.
  • ahhhhhh... that explains it.

    Given that the guide in for Android and different languages handle these different, it's good to clarify.

    Thanks!