xml
1 <?xml version="1.0" encoding="utf-8"?> 2 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 xmlns:app="http://schemas.android.com/apk/res-auto" 4 android:layout_width="match_parent" 5 android:layout_height="match_parent"> 6 7 <ImageView 8 android:id="@+id/iv_1" 9 android:layout_width="100dp" 10 android:layout_height="100dp" 11 android:background="#FF9900" 12 app:srcCompat="@drawable/yonghum" 13 android:scaleType="fitCenter" 14 /> 15 16 <ImageView 17 android:id="@+id/iv_2" 18 android:layout_width="100dp" 19 android:layout_height="100dp" 20 android:background="#FF9900" 21 android:layout_below="@id/iv_1" 22 android:layout_marginTop="100dp" 23 android:scaleType="fitCenter" 24 /> 25 </RelativeLayout>