FrameLayout:所有控件位于左上角,并且直接覆盖前面的子元素。
如下图所示:
其xml代码实现如下:
<span style="font-size:18px;"><?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"
android:background="@android:color/holo_orange_light">
<LinearLayout android:layout_width="200dp"
android:layout_height="200dp"
android:background="@drawable/jiaoshi">
</LinearLayout>
<LinearLayout
android:layout_width="100dp"
android:layout_height="100dp"
android:background="@drawable/ic_launcher" >
</LinearLayout>
</FrameLayout>
</span>