Android - Is it possible to declare an alpha mask directly within layer-list XML definition?
- 阅读更多 关于 Android - Is it possible to declare an alpha mask directly within layer-list XML definition?
A newbie question I have this layers.xml that I use as a source for an ImageView. And two images, mask.png and image.jpg layers.xml: <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item> <bitmap android:src="@drawable/image" android:gravity="center"/> </item> <item> <bitmap android:src="@drawable/mask" android:gravity="center"/> </item> </layer-list> ImageView: <ImageView android:id="@+id/img_B" android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/layers"/> At the moment the output is just the png over the image. I would like