完整内容,请查看: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版本中被删除。
使用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. |
继承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. |
保护方法 | |
|---|---|
boolean | checkLayoutParams(ViewGroup.LayoutParams p) |
ViewGroup.LayoutParams | generateDefaultLayoutParams() Returns a set of layout parameters with a width of |
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完整内容,请查看:http://www.zhdoc.net/android/reference/android/widget/AbsoluteLayout.html AbsoluteLayout的全部内容,更多相关Android7.0中文文档(API)---内容请搜索靠谱客的其他文章。
发表评论 取消回复