FrameLayout API
来源:互联网 发布:电信计费模拟c语言 编辑:程序博客网 时间:2024/05/21 09:26
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
- FrameLayout API
- Android7.0中文文档(API)--- FrameLayout
- FrameLayout
- FrameLayout
- FrameLayout
- FrameLayout
- Framelayout
- FrameLayout
- FrameLayout
- FrameLayout
- FrameLayout
- FrameLayout
- FrameLayout
- FrameLayout
- FrameLayout
- FrameLayout
- FrameLayout
- API 25 (Android 7.1.1 API) widget.FrameLayout
- 金蝶k3cloud二次开发,调用动态表单调用回调函数刷新页面
- 《JAVA与模式》之单例模式
- Activity及其生命周期小结
- 美国高考SAT数学新政介绍
- Spark-1.3.1与Hive整合实现查询分析
- FrameLayout API
- LRUCache 详解
- 数据结构——算法之(039)(ip合法性检查)
- shell排序
- GCD学习笔记(二):dispatch_queue_create
- 第14周 项目三-OOP版电子词典
- 第十四周程序阅读——例十三
- GRE作文怎样用问句开头?
- 第十三周 课后实践:项目三——立体类族共有的抽象类