安卓中的帧布局

来源:互联网 发布:软件测试中软件的定义 编辑:程序博客网 时间:2024/06/05 22:35
<?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="240dp"            android:layout_height="240dp"            android:background="#ff0000"            android:layout_gravity="center"            />    <TextView            android:layout_width="200dp"            android:layout_height="200dp"            android:background="#00ff00"            android:layout_gravity="center"            />    <TextView            android:layout_width="160dp"            android:layout_height="160dp"            android:background="#0000ff"            android:layout_gravity="center"            />    <TextView            android:layout_width="120dp"            android:layout_height="120dp"            android:background="#ffffb925"            android:layout_gravity="center"            />    <TextView            android:layout_width="80dp"            android:layout_height="80dp"            android:background="#ff00ff"            android:layout_gravity="center"            />    <TextView            android:layout_width="40dp"            android:layout_height="40dp"            android:background="#ffffff"            android:layout_gravity="center"            /></FrameLayout>

效果:
这里写图片描述

0 0