Monday, August 30, 2010

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

Hi Romain,

That's the weird part. Despite what the error message says, I have my
black ticks on the top and left. On right and bottom I have an empty 1
pixel border (no padding specified.)

The tool install I'm working with is android-sdk_r06-mac_86.zip and
for my project, if it matters, I'm on sdk version 7.

Any ideas?

Thanks for your help,
Brian

On Aug 30, 6:00 pm, Romain Guy <romain...@android.com> wrote:
> 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 <new...@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
> romain...@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