Can you try the attached .9.png? See if it scales?

-- Kostya


Alok Kulkarni <[email protected]> писал(а) в своём письме Wed, 05 May 2010 16:21:43 +0400:

Does not make any difference between both ir CreateFromStream and
CreateFromPath
Apparantly i am having a problem creatnig the image in the Draw9 patch..
I have attached the screen shot.
I can see that the corners are getting stretched even when i have specified
stretching at the centre..
Help please :):)

On Wed, May 5, 2010 at 4:49 PM, skink <[email protected]> wrote:



On May 5, 8:48 am, Alok Kulkarni <[email protected]> wrote:
> Okay i have a question here ..
> I am trying to use the draw9patch tool in the sdk folder. I took an image
> btn_media_player.9 from the SDK folder path which skink had given
> In the code i did the following
>         String path =
>
"data/data/com.android.test.themes/default/images/btn_media_player.9.png";
>         Drawable npd =  NinePatchDrawable.createFromPath(path);
>         btn.setBackgroundDrawable(npd);
> But this is not working.. The image is getting stretched.I have attached
the
> screenshot. Am i doing anything wrong ?
>

try createFromStream

pskink

--
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%[email protected]>
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en




--
Kostya Vasilyev - WiFi Manager + pretty widget - http://kmansoft.wordpress.com/sw

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

<<attachment: slim_spinner_normal.9.png>>

Reply via email to