Android:将图像放在另一个图像上

Abi*_*han 8 android view android-imageview

我有三个ImageViews,我想要1 ImageView在后台,另外2个图像应该放在那个.我无法使用任何其他视图,因为图像是以无法设置为LinearRelative布局背景的图像形式下载的.

第一张图片

在此输入图像描述

这是第二张图片我想要的是什么

在此输入图像描述

Ham*_*atu 11

您可以尝试以下xml布局...

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:layout_alignParentTop="true"
    android:layout_centerHorizontal="true" >

    <ImageView
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:background="@drawable/ic_launcher"
        android:scaleType="fitXY" />

    <ImageView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:layout_marginBottom="100dip"
        android:background="@drawable/ic_launcher" />

    <ImageView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="bottom|center_horizontal"
        android:layout_marginBottom="100dip"
        android:background="@drawable/ic_launcher" />

</FrameLayout>
Run Code Online (Sandbox Code Playgroud)