FrameLayout API
2015-06-10 12:43
295 查看
android.widget.FrameLayout
public class FrameLayout extends ViewGroup
@RemoteView
FrameLayout is designed to block out an areaon the screen to display a single item. Generally, FrameLayout should be usedto hold a single child view, because it can be difficult to organize childviews in a way that's scalable to different screen
sizes without the childrenoverlapping each other. You can, however, add multiple children to aFrameLayout and control their position within the FrameLayout by assigninggravity to each child, using theandroid:layout_gravityattribute.
Child views are drawn in a stack, with themost recently added child on top. The size of the FrameLayout is the size ofits largest child (plus padding), visible or not (if the FrameLayout's parentpermits). Views that areandroid.view.View.GONE
are used for sizingonly ifsetConsiderGoneChildrenWhenMeasuring() is set to true.
@attr
refandroid.R.styleable#FrameLayout_foreground
@attr
ref android.R.styleable#FrameLayout_foregroundGravity
@attr
refandroid.R.styleable#FrameLayout_measureAllChildren
译文:
FrameLayout 为了显示一个但一的项目去有计划地遮挡屏幕上的一些地方。
FrameLayout 应该用于控制单一的子视图,因为它很难通过 在保持子视图不重叠的情况下扩展到不同尺寸的屏幕上。 的方法组织子视图。
如果一定要在一个 FrameLayout 添加多个子视图,你可以通过android:layout_gravity attribute. 属性来控制 子视图的位置。
新加入这个容器的子视图存在于它之前的子视图之上。
FrameLayout的大小是它所包含的子视图中最大的子视图的大小(包括padding),FrameLayout的父视图有权控制这个FrameLayout是否显示。
Views that are android.view.View.GONE are used for sizingonly ifsetConsiderGoneChildrenWhenMeasuring()
is set to true.【并不理解】
@属性
ref android.R.styleable#FrameLayout_foreground
@属性
ref android.R.styleable#FrameLayout_foregroundGravity
@属性
ref android.R.styleable#FrameLayout_measureAllChildren
关于方法----http://android.toolib.net/reference/android/widget/FrameLayout.html
public class FrameLayout extends ViewGroup
@RemoteView
FrameLayout is designed to block out an areaon the screen to display a single item. Generally, FrameLayout should be usedto hold a single child view, because it can be difficult to organize childviews in a way that's scalable to different screen
sizes without the childrenoverlapping each other. You can, however, add multiple children to aFrameLayout and control their position within the FrameLayout by assigninggravity to each child, using theandroid:layout_gravityattribute.
Child views are drawn in a stack, with themost recently added child on top. The size of the FrameLayout is the size ofits largest child (plus padding), visible or not (if the FrameLayout's parentpermits). Views that areandroid.view.View.GONE
are used for sizingonly ifsetConsiderGoneChildrenWhenMeasuring() is set to true.
@attr
refandroid.R.styleable#FrameLayout_foreground
@attr
ref android.R.styleable#FrameLayout_foregroundGravity
@attr
refandroid.R.styleable#FrameLayout_measureAllChildren
译文:
FrameLayout 为了显示一个但一的项目去有计划地遮挡屏幕上的一些地方。
FrameLayout 应该用于控制单一的子视图,因为它很难通过 在保持子视图不重叠的情况下扩展到不同尺寸的屏幕上。 的方法组织子视图。
如果一定要在一个 FrameLayout 添加多个子视图,你可以通过android:layout_gravity attribute. 属性来控制 子视图的位置。
新加入这个容器的子视图存在于它之前的子视图之上。
FrameLayout的大小是它所包含的子视图中最大的子视图的大小(包括padding),FrameLayout的父视图有权控制这个FrameLayout是否显示。
Views that are android.view.View.GONE are used for sizingonly ifsetConsiderGoneChildrenWhenMeasuring()
is set to true.【并不理解】
@属性
ref android.R.styleable#FrameLayout_foreground
@属性
ref android.R.styleable#FrameLayout_foregroundGravity
@属性
ref android.R.styleable#FrameLayout_measureAllChildren
关于方法----http://android.toolib.net/reference/android/widget/FrameLayout.html
相关文章推荐
- Spark-1.3.1与Hive整合实现查询分析
- Activity及其生命周期小结
- 20150610
- jQuery实现dialog设置focus焦点的方法
- fastjson使用实例
- 金蝶k3cloud二次开发,调用动态表单调用回调函数刷新页面
- 关于RSA加密算法的长度问题
- JSP之三大指令
- 向量叉积定义的证明
- 几个更新(Update声明)查询方法
- 搭建高可用及负载均衡的REDIS
- C语言变参数函数
- GMAT数学解题辅导之5大数学思维
- C语言变参数函数
- 10.Logistic Regression逻辑斯蒂回归
- C语言变参数函数
- PKU 1679 The Unique MST(解题报告)
- QT拉人
- bootstrap 自定义
- MySQL中的string类型