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
FieldsModifier and TypeFieldDescriptionintThe horizontal, or X, location of the child within the view group.intThe 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
ConstructorsConstructorDescriptionLayoutParams(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_CONTENTor a fixed size in pixelsheight- the height, eitherViewGroup.LayoutParams.MATCH_PARENT,ViewGroup.LayoutParams.WRAP_CONTENTor 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.
-