1.帧布局层层递进
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<FrameLayout
android:background="#ff0000"
android:layout_width="400dp"
android:layout_height="400dp"/>
<FrameLayout
android:background="#ffff00"
android:layout_width="300dp"
android:layout_height="300dp"/>
<FrameLayout
android:background="#00ff00"
android:layout_width="200dp"
android:layout_height="200dp"/>
</FrameLayout>
2.设置前景/前景位置
android:foreground="@mipmap/ic_launcher"
android:foregroundGravity="right|bottom"