Package icyllis.modernui.widget
Class AbsoluteLayout.LayoutParams
java.lang.Object
icyllis.modernui.view.ViewGroup.LayoutParams
icyllis.modernui.widget.AbsoluteLayout.LayoutParams
- Enclosing class:
AbsoluteLayout
Per-child layout information associated with AbsoluteLayout.
-
Field Summary
Modifier and TypeFieldDescriptionint
The horizontal, or X, location of the child within the view group.int
The vertical, or Y, location of the child within the view group.Fields inherited from class icyllis.modernui.view.ViewGroup.LayoutParams
height, MATCH_PARENT, width, WRAP_CONTENT
-
Constructor Summary
ConstructorDescriptionLayoutParams
(int width, int height, int x, int y) Creates a new set of layout parameters with the specified width, height and location.LayoutParams
(ViewGroup.LayoutParams source) Copy constructor. -
Method Summary
Methods inherited from class icyllis.modernui.view.ViewGroup.LayoutParams
resolveLayoutDirection
-
Field Details
-
x
public int xThe horizontal, or X, location of the child within the view group. -
y
public int yThe vertical, or Y, location of the child within the view group.
-
-
Constructor Details
-
LayoutParams
public LayoutParams(int width, int height, int x, int y) Creates a new set of layout parameters with the specified width, height and location.- Parameters:
width
- the width, eitherViewGroup.LayoutParams.MATCH_PARENT
,ViewGroup.LayoutParams.WRAP_CONTENT
or a fixed size in pixelsheight
- the height, eitherViewGroup.LayoutParams.MATCH_PARENT
,ViewGroup.LayoutParams.WRAP_CONTENT
or a fixed size in pixelsx
- the X location of the childy
- the Y location of the child
-
LayoutParams
-
LayoutParams
Copy constructor. Clones the width, height, x and y of the source.- Parameters:
source
- The layout params to copy from.
-