FrameLayout帧布局
感觉很少用到这个布局,
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_frame_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.axnet.buju0711.FrameLayout">
<!--层叠的方式出现-->
<Button
android:text="Button1"
android:layout_width="300dp"
android:layout_height="300dp"
android:background="#00cacb"
android:id="@+id/button"/>
<Button
android:text="Button2"
android:layout_width="200dp"
android:layout_height="200dp"
android:background="#ffcacb"
android:id="@+id/button2"/>
<Button
android:text="Button3"
android:layout_width="100dp"
android:layout_height="100dp"
android:background="#cccacb"
android:id="@+id/button3"/>
</FrameLayout>