Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
juantwc
Visitor

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 2
valicode
Visitor

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
Visitor

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