Well, you can scale down and preserve corners at the same time. Just
copy four image corner parts of (width/2 x height/2) size each. This
of course is not an ideal solution, but it will work for most
drawables & most sane sizes (will work for my case too).

Just a proposition. I checked out help and it seems that in my case I
drew into size which was smaller than drawable's minimal size.

On 10 сент, 00:20, "Romain Guy" <[EMAIL PROTECTED]> wrote:
> It is normal.
>
> The whole point of a 9-patch is to preserve the corners. It is
> therefore not really possible to scale them down correctly.
>
> On Tue, Sep 9, 2008 at 10:15 AM, sahn0 <[EMAIL PROTECTED]> wrote:
>
> > It seems that nine-patch behaves wierdly when scaled down.
> > I created button and specified it to be 20x20 pixels. Button drawable
> > is 44x48 and has 2x2 stretchable area. Downscaling produced weird
> > results. In fact, the result didn't seem to be the result of scaling
> > at all. It looked like result of overlapping copy operations, which
> > were restricted to 20x20 clip.
>
> > The question is: is this normal? Or is it a bug? How in theory 9-
> > patches should/can be scaled down?
>
> --
> Romain Guywww.curious-creature.org
--~--~---------~--~----~------------~-------~--~----~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to