public static class PercentRelativeLayout.LayoutParams extends RelativeLayout.LayoutParams implements PercentLayoutHelper.PercentLayoutParams
alignWithParent
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(int width,
int height) |
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.
|
addRule, addRule, debug, encodeProperties, getRule, getRules, getRules, removeRule, resolveLayoutDirection
copyMarginsFrom, getLayoutDirection, getMarginEnd, getMarginStart, isLayoutRtl, isMarginRelative, onDebugDraw, setLayoutDirection, setMarginEnd, setMargins, setMarginsRelative, setMarginStart
sizeToString
public LayoutParams(Context c, AttributeSet attrs)
public LayoutParams(int width, int height)
public LayoutParams(ViewGroup.LayoutParams source)
public LayoutParams(ViewGroup.MarginLayoutParams 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