Android layout 在android中使用九块补丁图像时,图像视图不显示

Android layout 在android中使用九块补丁图像时,图像视图不显示,android-layout,android-imageview,Android Layout,Android Imageview,我使用九块图像(shadow_15347)作为阴影的背景,在它上面我使用带有背景的图像视图或我的徽标png的src。在emulator上运行时,我的9个补丁图像显示,但我的徽标png不显示。在活动的设计视图中,它正确地显示了,请告诉我哪里错了,提前谢谢 <LinearLayout android:layout_width="0dp" android:layout_weight="0.2" and

我使用九块图像(shadow_15347)作为阴影的背景,在它上面我使用带有背景的图像视图或我的徽标png的src。在emulator上运行时,我的9个补丁图像显示,但我的徽标png不显示。在活动的设计视图中,它正确地显示了,请告诉我哪里错了,提前谢谢

    <LinearLayout
        android:layout_width="0dp"
        android:layout_weight="0.2"
        android:layout_height="match_parent"
        android:gravity="center"
        android:background="@drawable/shadow_15347"
        android:orientation="vertical">


        <ImageView
            android:id="@+id/imageView5"
            android:layout_width="300dp"
            android:layout_height="300dp"
            android:background="@drawable/ic_baseline_add" />

    </LinearLayout>


在imageview中,为什么要使用android:background标记来设置图像,您可以使用src标记并进行检查。

我尝试了这一点,但什么都没有发生