public
static
class
AbsoluteLayout.LayoutParams
extends ViewGroup.LayoutParams
Per-child layout information associated with AbsoluteLayout.
See
Absolute Layout Attributes
for a list of all child view attributes that this class supports.
Summary
Inherited XML attributes | |||||
|---|---|---|---|---|---|
|
From class
| |||||
Inherited constants | ||||||
|---|---|---|---|---|---|---|
|
From class
|
Fields | |
|---|---|
public
int |
x
The horizontal, or X, location of the child within the view group. |
public
int |
y
The vertical, or Y, location of the child within the view group. |
Inherited fields | ||||||
|---|---|---|---|---|---|---|
|
From class
|
Public constructors | |
|---|---|
LayoutParams(Context c, AttributeSet attrs)
Creates a new set of layout parameters. |
|
LayoutParams(ViewGroup.LayoutParams source)
|
|
LayoutParams(int width, int height, int x, int y)
Creates a new set of layout parameters with the specified width, height and location. |
|
Public methods | |
|---|---|
String
|
debug(String output)
|
Inherited methods | |||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
From class
| |||||||||||||||||||||||
|
From class
| |||||||||||||||||||||||
Fields
x
public int x
The horizontal, or X, location of the child within the view group.
y
public int y
The vertical, or Y, location of the child within the view group.
Public constructors
LayoutParams
public LayoutParams (Context c, AttributeSet attrs)
Creates a new set of layout parameters. The values are extracted from the supplied attributes set and context. The XML attributes mapped to this set of layout parameters are:
layout_x: the X location of the childlayout_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 |