
Android 半透明图像叠加
在安卓上如何实现将两张图片叠加到一起,其中上层的图片半透明可以看到底部的图片啊,希望高手指导。...
在安卓上如何实现将两张图片叠加到一起,其中上层的图片半透明可以看到底部的图片啊,希望高手指导。
展开
1个回答
展开全部
用RelativeLayout布局就行
如:<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<ImageView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:src="@drawable/不透明图片"/>
<ImageView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:src="@drawable/透明图片"/>
</RelativeLayout>
就ok
如:<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<ImageView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:src="@drawable/不透明图片"/>
<ImageView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:src="@drawable/透明图片"/>
</RelativeLayout>
就ok
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询