Android,ImageView over ImageView

Ste*_*ano 9 android imageview android-layout

我有一个非常简单的问题要问:我需要在屏幕右下方的Im​​ageView上放一个小徽标,大屏幕,但我不知道如何设置坐标或怎么说ImageViews处于相对位置.

像这样的东西:

在此输入图像描述

MAC*_*MAC 8

试试这个

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent" >

    <ImageView
        android:id="@+id/imageView1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_alignParentLeft="true"
        android:layout_alignParentRight="true"
        android:layout_alignParentTop="true"
        android:src="@drawable/ic_launcher" />

    <ImageView
        android:id="@+id/imageView2"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_alignParentRight="true"
        android:src="@drawable/ic_launcher" />

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

产量

在此输入图像描述