帧布局(FrameLayout)的简单使用
来源:互联网 发布:集团合并报表软件 编辑:程序博客网 时间:2024/05/19 00:11
帧布局是从屏幕的左上角(0,0)坐标开始布局,多个组件层叠排序,后面的组件覆盖前面的组件。下面通过一个实例在FrameLayout布局中放置了三个TextView,分别设置TextView的大小、背景色及层叠显示。
布局XML:
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content" > <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="#aa0000" android:height="300px" android:width="300px" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="#00aa00" android:height="200px" android:width="200px" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="#0000aa" android:height="100px" android:width="100px" /> </FrameLayout></LinearLayout>
附上图片效果:
- 帧布局(FrameLayout)的简单使用
- Android布局FrameLayout的使用
- Android布局FrameLayout的使用
- FrameLayout(层布局或者帧布局)的使用
- 10 - 布局Layout:FrameLayout帧布局以及FrameLayout在切换屏幕效果的使用
- Android框架布局FrameLayout的使用…
- Android 布局 Framelayout 使用
- Android 帧布局(FrameLayout)的理解
- 帧布局FrameLayout的那些事儿
- FrameLayout布局实现简单tab
- android framelayout的简单使用例子
- FrameLayout(单帧布局)
- FrameLayout(帧布局)
- FrameLayout(帧布局)
- 02Framelayout:帧布局
- 帧布局(FrameLayout)
- Android FrameLayout 帧布局
- FrameLayout 帧布局
- V$database checkpoint,v$datafile checkpoint,v$datafile_header checkpoint
- dsfsf
- 黑马程序员 JAVA基础<二> 面向对象之封装 继承 多态
- 杭电2081
- VS2012 单元测试步骤 c++
- 帧布局(FrameLayout)的简单使用
- 黑马程序员 JAVA基础<三> 多线程
- uestc oj 1510 Weights and Measures
- ubuntu 手动安装 Adobe Flash Player
- 再见,viewDidUnload方法
- 黑马程序员 JAVA基础<四> 集合
- android碎片Fragment简介详解
- 在vmware上安装redboot
- 黑马程序员 JAVA基础<五> IO流