FrameLayout---框架布局,帧布局//未完
来源:互联网 发布:a站ceo莫然离职 知乎 编辑:程序博客网 时间:2024/05/21 09:41
public class FrameLayout extends ViewGroup
FrameLayout is designed to block out an area on the screen to display a single item. Generally, FrameLayout should be used to hold a single child view, because it can be difficult to organize child views in a way that's scalable to different screen sizes without the children overlapping each other. You can, however, add multiple children to a FrameLayout and control their position within the FrameLayout by assigning gravity to each child, using the android:layout_gravity
attribute.
//帧布局被设计出来通过在屏幕上封闭一个区域显示一个单独的项目。通常,帧布局被用来控制一个单独的子视图,因为用一种方法组织在不同尺寸的屏幕上可伸缩的子视图而不出现子视图的相互重叠是非常困难的.但是,你可以在一个FrameLayout里面添加不同的子视图并且通过在FrameLayout里面设置每一个子视图的重力来控制它们的位置,通过android:layout_gravity的属性。
Child views are drawn in a stack, with the most recently added child on top. The size of the FrameLayout is the size of its largest child (plus padding), visible or not (if the FrameLayout's parent permits). Views that are GONE
are used for sizing only if setConsiderGoneChildrenWhenMeasuring()
is set to true.
//子视图随着最近被添加的子布局被绘制在栈的顶部.FrameLayout的尺寸是最大子视图的尺寸(加上填充),可见或者不可见的(如果FrameLayout的父布局允许).只有当setConsiderGoneChildrenWhenMeasuring()被设置成true时,Views的GONE被用来测量尺寸。
- FrameLayout---框架布局,帧布局//未完
- FrameLayout(框架布局)
- 框架布局FrameLayout
- FrameLayout布局(帧布局)
- Android框架布局管理器FrameLayout
- android 布局框架FrameLayout布局实例
- 布局Layouts之FrameLayout框架布局
- FrameLayout(单帧布局)
- FrameLayout(帧布局)
- FrameLayout(帧布局)
- 02Framelayout:帧布局
- 帧布局(FrameLayout)
- Android FrameLayout 帧布局
- FrameLayout 帧布局
- FrameLayout帧布局初识
- FrameLayout(帧布局)
- FrameLayout布局
- FrameLayout布局
- windows编程——编译及向导安装
- 微信公众平台开发(三) 订阅事件(subscribe)处理
- HDU2006
- Android高级应用开发(基础篇) - stage10 - 学习笔记
- Request与Response
- FrameLayout---框架布局,帧布局//未完
- 【LeetCode】Permutations && Permutations II
- 宏 中使用 do {...;}while(0)的意义
- HDU2007
- linux wireless mouse
- 整合spring和myBaits时候报这个错是怎么回事?跪求解答
- Mastering Powershell 学习笔记-2 续
- 问题标签用户 java io File not found 找不到系统指定的文件,工程目录下有此文件源码如下
- 介绍C++0x的多线程编程,蛮好的.