Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
juantwc
Level 7

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?
0 Kudos
2 Replies
valicode
Level 7

Re: 9-patch image ... how exactly?

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.
0 Kudos
juantwc
Level 7

Re: 9-patch image ... how exactly?

ahhhhhh... that explains it.

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

Thanks!
0 Kudos