public static class PercentFrameLayout.LayoutParams extends FrameLayout.LayoutParams implements PercentLayoutHelper.PercentLayoutParams
gravity, UNSPECIFIED_GRAVITY
bottomMargin, DEFAULT_MARGIN_RELATIVE, leftMargin, rightMargin, topMargin
FILL_PARENT, height, layoutAnimationParameters, MATCH_PARENT, width, WRAP_CONTENT
Constructor and Description |
---|
LayoutParams(Context c,
AttributeSet attrs) |
LayoutParams(FrameLayout.LayoutParams source) |
LayoutParams(int width,
int height) |
LayoutParams(int width,
int height,
int gravity) |
LayoutParams(PercentFrameLayout.LayoutParams source) |
LayoutParams(ViewGroup.LayoutParams source) |
LayoutParams(ViewGroup.MarginLayoutParams source) |
Modifier and Type | Method and Description |
---|---|
PercentLayoutHelper.PercentLayoutInfo |
getPercentLayoutInfo() |
protected void |
setBaseAttributes(TypedArray a,
int widthAttr,
int heightAttr)
Extracts the layout parameters from the supplied attributes.
|
copyMarginsFrom, encodeProperties, getLayoutDirection, getMarginEnd, getMarginStart, isLayoutRtl, isMarginRelative, onDebugDraw, resolveLayoutDirection, setLayoutDirection, setMarginEnd, setMargins, setMarginsRelative, setMarginStart
debug, sizeToString
public LayoutParams(Context c, AttributeSet attrs)
public LayoutParams(int width, int height)
public LayoutParams(int width, int height, int gravity)
public LayoutParams(ViewGroup.LayoutParams source)
public LayoutParams(ViewGroup.MarginLayoutParams source)
public LayoutParams(FrameLayout.LayoutParams source)
public LayoutParams(PercentFrameLayout.LayoutParams source)
public PercentLayoutHelper.PercentLayoutInfo getPercentLayoutInfo()
getPercentLayoutInfo
in interface PercentLayoutHelper.PercentLayoutParams
protected void setBaseAttributes(TypedArray a, int widthAttr, int heightAttr)
ViewGroup.LayoutParams
setBaseAttributes
in class ViewGroup.LayoutParams
a
- the style attributes to extract the parameters fromwidthAttr
- the identifier of the width attributeheightAttr
- the identifier of the height attribute