<?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"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:width="320pt"
android:height="320pt"
android:background="#f00"
android:id="@+id/textView1"
android:layout_gravity="center" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:width="280pt"
android:height="280pt"
android:background="#0f0"
android:id="@+id/textView2"
android:layout_gravity="center" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:width="240pt"
android:height="240pt"
android:background="#ff0"
android:id="@+id/textView3"
android:layout_gravity="center" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:width="200pt"
android:height="200pt"
android:background="#00f"
android:id="@+id/textView4"
android:layout_gravity="center" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:width="160pt"
android:height="160pt"
android:background="#f0f"
android:id="@+id/textView5"
android:layout_gravity="center" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:width="120pt"
android:height="120pt"
android:id="@+id/textView6"
android:background="#0ff"
android:layout_gravity="center" />
</FrameLayout>
运行结果: