Your Digital Media Has Never Looked So Good

 
juantwc
Topic Author
Posts: 15
Joined: Thu Nov 26, 2015 3:23 am

9-patch image ... how exactly?

Fri Feb 05, 2016 6:03 am

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?
 
valicode
Posts: 10
Joined: Tue Oct 27, 2015 4:29 am

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

Mon Feb 08, 2016 8:22 am

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.
 
juantwc
Topic Author
Posts: 15
Joined: Thu Nov 26, 2015 3:23 am

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

Mon Feb 08, 2016 8:28 am

ahhhhhh... that explains it.

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

Thanks!

Who is online

Users browsing this forum: No registered users and 7 guests