I found interesting thing here:
http://developer.android.com/guide/topics/graphics/2d-graphics.html

There is a sample of button image, used like nine-patch drawable.

And in a sample of using this picture you can see that it is not only
stretched, but angles are mutating in some strange way.
Also there is not one-pixel black line around button on stretched
image.

Does anyone no how to forbid this changing?

On 15 ноя, 19:57, Евгений Григорьев <[email protected]>
wrote:
> I mark only 2 center pixels as stretchable area. The problem is not
> stretching, but small changes in color of line and little mutations of
> corners.
>
> I thought it can be resolved by putting original picture to "raw"
> resource folder, but in this case it is not stretched correctly.
>
> On 15 ÎÏÑ, 15:00, Kumar Bibek <[email protected]> wrote:
>
>
>
> > You should stretch the areas that are uniform. That is, do not stretch the
> > corners. That should fix this problem
>
> > 2010/11/15 å×ÇÅÎÉÊ çÒÉÇÏÒØÅ× <[email protected]>
>
> > > Hi all.
>
> > > I have a problem with using nine patch images. I have an original
> > > picture:
>
> > >http://picasaweb.google.com/Grigoriev.Evgeny.V/Android?authkey=Gv1sRg...
>
> > > Than i use nine-patch tool from sdk to set 2-pixel stretchable area in
> > > the center of horizontal line. Then i set this image like background
> > > of linear layout. And as a result i get such image:
>
> > >http://picasaweb.google.com/Grigoriev.Evgeny.V/Android?authkey=Gv1sRg...
>
> > > So my image not only stretches, but also changes in some strange way.
> > > Even corner areas, that should be the same changes.
>
> > > Has anyone the same problem?
>
> > > --
> > > 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]<android-developers%2bunsubs­[email protected]>
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
>
> > --
> > Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com

-- 
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