Android 视图';的背景放置在元素上

Android 视图';的背景放置在元素上,android,view,background,android-relativelayout,Android,View,Background,Android Relativelayout,下午好!在我看来,我想用一幅图像作为背景,问题是当我使用一幅图像时(颜色非常完美),背景被放置在元素上,所以不可能什么都看不见 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layou

下午好!在我看来,我想用一幅图像作为背景,问题是当我使用一幅图像时(颜色非常完美),背景被放置在元素上,所以不可能什么都看不见

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".Greet"
    android:background="@drawable/fondo_panel" >

    <ImageView android:layout_height="wrap_content" 
    android:layout_width="match_parent" 
    android:src="@drawable/logo_panel"/>

</RelativeLayout>


你知道有什么问题吗?非常感谢

为什么不将图像作为背景添加到您的RelativeLayout中?因此,您不需要ImageView,也不需要重叠

<RelativeLayout 
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".Greet"
    android:background="@drawable/logo_panel" >

</RelativeLayout>


相对视图的背景应位于图像视图的后面?或者你想要的配置是什么?是的,我想要的是背景上的图像视图,而不是底部。从布局上看,我看不出任何不起作用的原因,你能发布一个错误的屏幕截图吗?