Package icyllis.modernui.widget
Class FrameLayout.LayoutParams
java.lang.Object
icyllis.modernui.view.ViewGroup.LayoutParams
icyllis.modernui.view.ViewGroup.MarginLayoutParams
icyllis.modernui.widget.FrameLayout.LayoutParams
- Enclosing class:
FrameLayout
Per-child layout information for layouts that support margins.
-
Field Summary
Modifier and TypeFieldDescriptionint
The gravity to apply with the View to which these layout parameters are associated.static final int
Value forgravity
indicating that a gravity has not been explicitly specified.Fields inherited from class icyllis.modernui.view.ViewGroup.MarginLayoutParams
bottomMargin, DEFAULT_MARGIN_RELATIVE, leftMargin, rightMargin, topMargin
Fields inherited from class icyllis.modernui.view.ViewGroup.LayoutParams
height, MATCH_PARENT, width, WRAP_CONTENT
-
Constructor Summary
ConstructorDescriptionLayoutParams
(int width, int height) Creates a new set of layout parameters with the specified width and height.LayoutParams
(int width, int height, int gravity) Creates a new set of layout parameters with the specified width, height and gravity.LayoutParams
(ViewGroup.LayoutParams source) LayoutParams
(FrameLayout.LayoutParams source) Copy constructor. -
Method Summary
Methods inherited from class icyllis.modernui.view.ViewGroup.MarginLayoutParams
copyMarginsFrom, getLayoutDirection, getMarginEnd, getMarginStart, isLayoutRtl, isMarginRelative, onDebugDraw, resolveLayoutDirection, setLayoutDirection, setMarginEnd, setMargins, setMarginsRelative, setMarginStart
-
Field Details
-
UNSPECIFIED_GRAVITY
public static final int UNSPECIFIED_GRAVITYValue forgravity
indicating that a gravity has not been explicitly specified.- See Also:
-
gravity
public int gravityThe gravity to apply with the View to which these layout parameters are associated.The default value is
UNSPECIFIED_GRAVITY
, which is treated by FrameLayout asGravity.TOP | Gravity.START
.- See Also:
-
-
Constructor Details
-
LayoutParams
public LayoutParams(int width, int height) Creates a new set of layout parameters with the specified width and height.- Parameters:
width
- the width, eitherViewGroup.LayoutParams.WRAP_CONTENT
,ViewGroup.LayoutParams.MATCH_PARENT
, or a size in pixelsheight
- the height, eitherViewGroup.LayoutParams.WRAP_CONTENT
,ViewGroup.LayoutParams.MATCH_PARENT
, or a size in pixels
-
LayoutParams
public LayoutParams(int width, int height, int gravity) Creates a new set of layout parameters with the specified width, height and gravity.- 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 pixelsgravity
- the gravity- See Also:
-
LayoutParams
-
LayoutParams
-
LayoutParams
Copy constructor. Clones the width, height, margin values, and gravity of the source.- Parameters:
source
- the layout params to copy from.
-