我在android.But的框架布局中添加了一个内部图像,事情是我得到了一个白色的背景。我需要删除白色Background.Any帮助将不胜感激.....
截图如下所示

xml文件如下所示
<?xml version="1.0" encoding="UTF-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ImageView
android:id="@+id/imageView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:scaleType="center"
/>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="left"
android:background="@null"
android:maxWidth="-5dp"
android:maxHeight="-5dp"
android:src="@drawable/driveimg"
/>
</FrameLayout>发布于 2015-01-05 19:25:39
可以将背景设置为空(android:background="@null")或使用透明色(android:background="@android:color/transparent")
https://stackoverflow.com/questions/27778512
复制相似问题