Hi,

I would like use a 9 patch png in an ImageView. It sounds easy but
doesn't work for me.
If I set the popup.9.png drawable as the source then the whole image
is stretched, not works as I excepted.

<ImageView android:layout_width="fill_parent"
android:layout_height="fill_parent" android:src="@drawable/popup"/>

If I set this drawable as background then it works well.

But setting as background is not good for me because I would like to
set alpha value too
which is for source only not background.

This link says too that you should set as background:

http://stackoverflow.com/questions/5242880/android-9-patch-graphic-doesnt-scale-in-image-view

Can somebody tell me why doesn't it work?

Thanks,
Tamás

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

Reply via email to