Android:ImageView背景不会更改

Android:ImageView背景不会更改,android,android-imageview,Android,Android Imageview,我在ControintLayout中有以下ImageView: <ImageView android:id="@+id/app_logo" android:layout_width="96dp" android:layout_height="96dp" android:layout_marginStart="16dp" android:layout_marginTop=&

我在ControintLayout中有以下ImageView:

<ImageView
    android:id="@+id/app_logo"
    android:layout_width="96dp"
    android:layout_height="96dp"
    android:layout_marginStart="16dp"
    android:layout_marginTop="16dp"
    android:layout_marginEnd="16dp"
    android:layout_marginBottom="16dp"
    android:contentDescription="@string/app_name"
    android:src="@mipmap/app_icon"
    app:layout_constraintBottom_toBottomOf="parent"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toBottomOf="@+id/about"
    app:srcCompat="@drawable/app_logo" />

app_徽标
是一个带有透明背景的nodpi PNG。我已经检查过了,它是透明的

无论我设置了哪一个与背景相关的属性,我总是在图像后面得到一个白色的皱褶。(我想一个形状可能来自一个UI。)


我错过了什么?我的应用程序中有几个ImageView,除了这一个,每个都有我需要的背景。它快把我逼疯了。

你试过摆脱android:src=“@mipmap/app_icon”行吗?您可能不应该在布局XML中引用mipmap。此外,您已经有了指向另一个图像的
srccomat

您是否尝试摆脱了
android:src=“@mipmap/app_icon”
行?您可能不应该在布局XML中引用mipmap。此外,你已经有了
srcCompat
指向另一张图片。你能给我们提供你的图片吗?@GavinWright我已经用头撞桌子两天了。你救了我的命。起初我想使用app图标,然后决定使用一个更详细的图标,但我不知道这一行是怎么出现的,因为我总是使用
scrCompat
。请将您的评论作为答案发布,这样我就可以接受了!。