删除ImageView的阴影

Luk*_*öhl 7 android dropshadow imageview android-imageview

在Android Studio中,我集成了一个带有不需要的阴影的ImageView,我似乎无法摆脱它.如何让图片融入背景?我尝试将按钮的背景设置为透明,android:shadowRadius="0"但无法正常工作.

我的ImageView

我的.xml文件

<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:background="@color/colorWhiteText"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <android.support.constraint.Guideline
        android:id="@+id/guideline16"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:orientation="horizontal"
        app:layout_constraintGuide_percent="0.23" />

    <ImageView
        android:id="@+id/imageView"
        android:layout_width="100dp"
        android:layout_height="100dp"
        android:layout_marginBottom="8dp"
        android:layout_marginEnd="8dp"
        android:layout_marginStart="8dp"
        android:layout_marginTop="8dp"
        android:shadowRadius="0"
        app:layout_constraintBottom_toTopOf="@+id/guideline16"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:srcCompat="@drawable/logo_174" />

</android.support.constraint.ConstraintLayout>
Run Code Online (Sandbox Code Playgroud)

Luk*_*öhl 2

我刚刚找到了这个问题的愚蠢解决方案。确保图片本身没有阴影,但事实并非如此。我确信我已经得到了我想要的图片,但不知何故在这个过程中创建了阴影。