xml
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:layout_height="match_parent"
android:layout_width="match_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<FrameLayout
android:layout_width="300dp"
android:layout_height="300dp"
android:background="#ff0000"
/>
<FrameLayout
android:layout_width="200dp"
android:layout_height="200dp"
android:foreground="@drawable/opc"
android:foregroundGravity="right|bottom"
android:background="#ffff00"
/>
<FrameLayout
android:layout_width="100dp"
android:layout_height="100dp"
android:background="#ffffff"
/>
</FrameLayout>