AbsoluteLayout.LayoutParams
public static class AbsoluteLayout.LayoutParams
extends ViewGroup.LayoutParams
与AbsoluteLayout关联的每个子布局信息。 有关Absolute Layout Attributes
支持的所有子视图属性的列表,请参见Absolute Layout Attributes
。
Summary
Fields |
public int |
x 视图组内水平或X的位置。 |
public int |
y 视图组内垂直或Y的位置。 |
Fields
Public constructors
AbsoluteLayout.LayoutParams
AbsoluteLayout.LayoutParams (int width,
int height,
int x,
int y)
用指定的宽度,高度和位置创建一组新的布局参数。
Parameters |
width |
int : the width, either MATCH_PARENT , WRAP_CONTENT or a fixed size in pixels |
height |
int : the height, either MATCH_PARENT , WRAP_CONTENT or a fixed size in pixels |
x |
int : the X location of the child |
y |
int : the Y location of the child |
AbsoluteLayout.LayoutParams
AbsoluteLayout.LayoutParams (Context c,
AttributeSet attrs)
创建一组新的布局参数。 这些值是从提供的属性集和上下文中提取的。 映射到这组布局参数的XML属性是:
layout_x
: the X location of the child
layout_y
: the Y location of the child
- All the XML attributes from
ViewGroup.LayoutParams
Parameters |
c |
Context : the application environment |
attrs |
AttributeSet : the set of attributes from which to extract the layout parameters values |
AbsoluteLayout.LayoutParams
AbsoluteLayout.LayoutParams (ViewGroup.LayoutParams source)
Parameters |
source |
ViewGroup.LayoutParams
|
Public methods
debug
String debug (String output)
返回此组布局参数的字符串表示形式。
Parameters |
output |
String : the String to prepend to the internal representation |
Returns |
String |
a String with the following format: output + "ViewGroup.LayoutParams={ width=WIDTH, height=HEIGHT }" |