【发布时间】:2016-11-29 05:25:17
【问题描述】:
我有一个彩色 gif 图像,我想在我的应用程序中使用,我通过将 gif 拖放到 res/drawable 中将图像导入我的应用程序。 然而,透明背景在图像视图中显示时变为白色,这是我的代码
<ImageView
android:layout_width="100dp"
android:layout_height="100dp"
android:scaleType="fitXY"
android:src="@drawable/logo"/>
如何让 android 显示透明背景而不是白色背景? 谢谢
【问题讨论】:
标签: android xml android-studio