Android7.0中文文档(API)--- AbsoluteLayout

完整内容,请查看:http://www.zhdoc.net/android/reference/android/widget/AbsoluteLayout.html

AbsoluteLayout

public class AbsoluteLayout
extends ViewGroup

java.lang.Object
   ↳android.view.View
    ↳android.view.ViewGroup
     ↳android.widget.AbsoluteLayout
已知的直接子类


This class was deprecated in API level 3.
Use FrameLayout, RelativeLayout or a custom layout instead.
此类在API level 3版本中被删除。
使用FrameLayoutRelativeLayout或一个子定义布局来替代。

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

摘要


嵌套类

classAbsoluteLayout.LayoutParams

Per-child layout information associated with AbsoluteLayout. 
与AbsoluteLayout相关的每个子布局的信息。 

继承XML属性

From class android.view.ViewGroup
From class android.view.View

继承常量

From class android.view.ViewGroup
From class android.view.View

继承字段

From class 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.LayoutParamsgenerateLayoutParams(AttributeSet attrs)

Returns a new set of layout parameters based on the supplied attributes set.
基于提供的一组属性,返回一组新的布局参数。

booleanshouldDelayChildPressedState()

Return true if the pressed state should be delayed for children or descendants of this ViewGroup.
如果这个ViewGroup的子项要延迟按下的状态,则返回true。

保护方法

booleancheckLayoutParams(ViewGroup.LayoutParams p)
ViewGroup.LayoutParamsgenerateDefaultLayoutParams()

Returns a set of layout parameters with a width of WRAP_CONTENT, a height of WRAP_CONTENT and with the coordinates (0, 0).
返回一组布局参数, 包括WRAP_CONTENT的宽度,WRAP_CONTENT的高度,并且坐标是(0,0)。

ViewGroup.LayoutParamsgenerateLayoutParams(ViewGroup.LayoutParams p)

Returns a safe set of layout parameters based on the supplied layout params.
基于提供的布局参数,返回一组安全的布局参数。

voidonLayout(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.
当此视图分配大小和位置给它的每个子项时,从布局中调用。

voidonMeasure(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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值