public static class AbsoluteLayout.LayoutParams extends ViewGroup.LayoutParams
Absolute Layout Attributes
for a list of all child view attributes that this class supports.Modifier and Type | Field and Description |
---|---|
int |
x
The horizontal, or X, location of the child within the view group.
|
int |
y
The vertical, or Y, location of the child within the view group.
|
FILL_PARENT, height, layoutAnimationParameters, MATCH_PARENT, width, WRAP_CONTENT
Constructor and Description |
---|
AbsoluteLayout.LayoutParams(Context c,
AttributeSet attrs)
Creates a new set of layout parameters.
|
AbsoluteLayout.LayoutParams(int width,
int height,
int x,
int y)
Creates a new set of layout parameters with the specified width,
height and location.
|
AbsoluteLayout.LayoutParams(ViewGroup.LayoutParams source) |
Modifier and Type | Method and Description |
---|---|
String |
debug(String output)
Returns a String representation of this set of layout parameters.
|
onDebugDraw, resolveLayoutDirection, setBaseAttributes, sizeToString
public int x
public int y
public AbsoluteLayout.LayoutParams(int width, int height, int x, int y)
width
- the width, either ViewGroup.LayoutParams.MATCH_PARENT
,
ViewGroup.LayoutParams.WRAP_CONTENT
or a fixed size in pixelsheight
- the height, either ViewGroup.LayoutParams.MATCH_PARENT
,
ViewGroup.LayoutParams.WRAP_CONTENT
or a fixed size in pixelsx
- the X location of the childy
- the Y location of the childpublic AbsoluteLayout.LayoutParams(Context c, AttributeSet attrs)
layout_x
: the X location of the childlayout_y
: the Y location of the childViewGroup.LayoutParams
c
- the application environmentattrs
- the set of attributes from which to extract the layout
parameters valuespublic AbsoluteLayout.LayoutParams(ViewGroup.LayoutParams source)
public String debug(String output)
ViewGroup.LayoutParams
debug
in class ViewGroup.LayoutParams
output
- the String to prepend to the internal representation