Monday, August 30, 2010

Re: [android-developers] Can 9 patches have more than marked region or not?

Multiple regions are supported, but only on the left and top edges.
The right and bottom edges are reserved for padding. And it doesn't
make sense to have several paddings :)

On Mon, Aug 30, 2010 at 5:47 PM, newobj <newobj@gmail.com> wrote:
> I'm confused because I've found various tutorials illustrating how to
> create multiple stretchable regions in your 9 patch (e.g. you want the
> center and corners of the image to stay fixed size, but two inner
> columns to stretch), and the draw9patch tools seems to happily support
> it. What's more, a 9 patch built this way even works in the layout
> preview tool.
>
> However, when AAPT runs over the .9.png in Eclipse, I get the
> following error:
>
> "Can't have more than one marked region along edge. - Found at pixel
> #9 along bottom edge."
>
> So it doesn't seem to like the multiple regions.
>
> What's going on?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscribe@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

--
Romain Guy
Android framework engineer
romainguy@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment