The border has to be either black and white or black and transparent. On Tue, Aug 25, 2009 at 12:49 PM, Nmix <[email protected]> wrote:
> > While fooling around with some custom buttons I made, to save time I > manipulated the color of the entire 9-patch image, not just inside the > 1-pixel border. Every time this corrupts the 9-patch functionality of > the button. > > What is the tolerance of the color and alpha pixels of that 9-patch > border? Does Android look for an exact match to, say, #FF000000? > > I noticed in these cases that when opening the corrupt file, the 9- > patch tool briefly flashes the (bad) border pixels, then they change > to transparent. It also doesn't add a 1-pixel border to the image as > it does for .PNG files that have not yet been converted to 9-patch. > This seems to be odd behavior. > > > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. 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 -~----------~----~----~----~------~----~------~--~---

