It's hard to tell without the actual image, but I guess there *is* a
pixel too much. Did you check the 9th (or 10th? not sure whether it
starts with 0 or 1) pixel in the border line?
Maybe you should check with draw9patch, it's a tool installed with the
Android SDK (in tools subdirectory). It sometimes fixes/ignores wrong
border pixels, so you can just set them correctly and save again.
I use 9-patch drawables with multiple strechable regions for quite a
while without any troubles.
Well, without much troubles. Sometimes I mix up layers when using
color effects, and then the SDK nags about non-black pixels... ;)

On Aug 31, 3:08 am, newobj <[email protected]> wrote:
> 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 <[email protected]> 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 <[email protected]> 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 [email protected]
> > > To unsubscribe from this group, send email to
> > > [email protected]
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
>
> > --
> > Romain Guy
> > Android framework engineer
> > [email protected]
>
> > 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to