Android7.0中文文档(API)--- AbsoluteLayout
来源:互联网 发布:最全金融网络理财产品 编辑:程序博客网 时间:2024/06/04 19:04
完整内容,请查看:http://www.zhdoc.net/android/reference/android/widget/AbsoluteLayout.html
AbsoluteLayout
public class AbsoluteLayout
extendsViewGroup
This class was deprecated in API level 3.
Use FrameLayout
,RelativeLayout
or a custom layout instead.
此类在API level 3版本中被删除。
使用FrameLayout
,RelativeLayout
或一个子定义布局来替代。
A layout that lets you specify exact locations (x/y coordinates) of its children. Absolute layouts are less flexible and harder to maintain than other types of layouts without absolute positioning.
一个布局,其允许你指定它的子项的精确位置(x/y坐标)。绝对布局比其他类型的布局更不灵活,也更难维护。
XML attributes
XML属性
See ViewGroup Attributes
,View Attributes
参考ViewGroup Attributes
View Attributes
摘要
嵌套类
class
AbsoluteLayout.LayoutParams
Per-child layout information associated with AbsoluteLayout.
与AbsoluteLayout相关的每个子布局的信息。
继承XML属性
android.view.ViewGroup
android.view.View
继承常量
android.view.ViewGroup
android.view.View
继承字段
android.view.View
Public构造方法
AbsoluteLayout(Context context)
AbsoluteLayout(Context context, AttributeSet attrs)
AbsoluteLayout(Context context, AttributeSet attrs, int defStyleAttr)
AbsoluteLayout(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)
Public方法
ViewGroup.LayoutParams
generateLayoutParams(AttributeSet attrs)
Returns a new set of layout parameters based on the supplied attributes set.
基于提供的一组属性,返回一组新的布局参数。
boolean
shouldDelayChildPressedState()
Return true if the pressed state should be delayed for children or descendants of this ViewGroup.
如果这个ViewGroup的子项要延迟按下的状态,则返回true。
保护方法
boolean
checkLayoutParams(ViewGroup.LayoutParams p)
ViewGroup.LayoutParams
generateDefaultLayoutParams()
Returns a set of layout parameters with a width of WRAP_CONTENT
, a height ofWRAP_CONTENT
and with the coordinates (0, 0).
返回一组布局参数, 包括WRAP_CONTENT
的宽度,WRAP_CONTENT
的高度,并且坐标是(0,0)。
ViewGroup.LayoutParams
generateLayoutParams(ViewGroup.LayoutParams p)
Returns a safe set of layout parameters based on the supplied layout params.
基于提供的布局参数,返回一组安全的布局参数。
void
onLayout(boolean changed, int l, int t, int r, int b)
Called from layout when this view should assign a size and position to each of its children.
当此视图分配大小和位置给它的每个子项时,从布局中调用。
void
onMeasure(int widthMeasureSpec, int heightMeasureSpec)
Measure the view and its content to determine the measured width and the measured height.
测量视图,它的内容决定测量得到宽度和高度。
继承方法
完整内容,请查看:http://www.zhdoc.net/android/reference/android/widget/AbsoluteLayout.html
- Android7.0中文文档(API)--- AbsoluteLayout
- Android7.0中文文档(API)-- AbsoluteLayout.LayoutParams
- Android7.0中文文档(API)--- FrameLayout
- Android7.0中文文档(API)--- DatePicker
- Android7.0中文文档(API) --- MediaController
- Android7.0中文文档(API)--- TabHost
- Android7.0中文文档(API) -- TimePicker
- Android7.0中文文档(API)-- ViewAnimator
- Android7.0中文文档(API) -- Switch
- Android7.0中文文档(API) --- ToggleButton
- Android7.0中文文档(API) --- RadioButton
- Android7.0中文文档(API) --- CheckedTextView
- Android7.0中文文档(API) -- ScrollView
- Android7.0中文文档(API)-- DigitalClock
- Android7.0中文文档(API)-- TextClock
- Android7.0中文文档(API)---Chronometer
- Android7.0中文文档(API)--- AdapterView
- Android7.0中文文档(API)--- AdapterViewAnimator
- 关闭页面时使用jQuery调用事件的方法
- 使用cocos2d-x游戏引擎做一个helloworld界面
- SpringAOP拦截Controller,Service实现日志管理(自定义注解的方式)
- Kotlin ---- 环境搭建和命令行编译运行HelloWorld
- phpstorm 免费激活码
- Android7.0中文文档(API)--- AbsoluteLayout
- [Unity&C#&事件委托]对委托事件的学习与实践
- wordpress搬家换域名
- 2017 年物联网开发趋势报告:Linux 仍是 IoT 的主要操作系统
- Windows下更改Python默认版本的方法
- sdut-3916 上色的纱雾
- JAVA简单二维码实现
- 在 Ubuntu 上使用 Nginx 部署 Flask 应用 【已翻译100%】
- 控制页面不能回退