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

Reply via email to