FrameLayout---框架布局,帧布局//未完
2014-01-24 14:51
183 查看
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 withoutthe 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_gravityattribute.
//帧布局被设计出来通过在屏幕上封闭一个区域显示一个单独的项目。通常,帧布局被用来控制一个单独的子视图,因为用一种方法组织在不同尺寸的屏幕上可伸缩的子视图而不出现子视图的相互重叠是非常困难的.但是,你可以在一个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
GONEare
used for sizing only if
setConsiderGoneChildrenWhenMeasuring()is
set to true.
//子视图随着最近被添加的子布局被绘制在栈的顶部.FrameLayout的尺寸是最大子视图的尺寸(加上填充),可见或者不可见的(如果FrameLayout的父布局允许).只有当setConsiderGoneChildrenWhenMeasuring()被设置成true时,Views的GONE被用来测量尺寸。
相关文章推荐
- android五大布局之FrameLayout(框架布局)
- Android学习笔记07-框架布局FrameLayout
- .Net程序猿乐Android发展---(10)框架布局FrameLayout
- 第14章、布局Layouts之FrameLayout框架布局(从零开始学Android)
- Android框架布局FrameLayout的使用…
- Android学习笔记07:框架布局FrameLayout
- FrameLayout(框架布局)
- Android学习笔记十六之FrameLayout框架布局
- 项目框架搭建 FrameLayout+RadioGroup+TableLayout+ 实现复杂界面布局
- 框架布局FrameLayout
- 第14章、布局Layouts之FrameLayout框架布局(从零开始学Android)
- FrameLayout框架布局的的动态配置
- FrameLayout框架布局的的动态配置
- 第14章、布局Layouts之FrameLayout框架布局(从零开始学Android)
- Android学习笔记12:框架布局管理器FrameLayout
- FrameLayout(框架布局)
- 布局Layouts之FrameLayout框架布局
- Android学习笔记十六之FrameLayout框架布局
- Android常用布局(FrameLayout(框架布局)、LinearLayout(线性布局)、RelativeLayout(相对布局))详解
- Android学习笔记07:框架布局FrameLayout