public static class RadioGroup.LayoutParams extends LinearLayout.LayoutParams
This set of layout parameters defaults the width and the height of
the children to ViewGroup.LayoutParams.WRAP_CONTENT
when they are not specified in the
XML file. Otherwise, this class ussed the value read from the XML file.
See
LinearLayout Attributes
for a list of all child view attributes that this class supports.
gravity, weight
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 w,
int h) |
LayoutParams(int w,
int h,
float initWeight) |
LayoutParams(ViewGroup.LayoutParams p) |
LayoutParams(ViewGroup.MarginLayoutParams source) |
Modifier and Type | Method and Description |
---|---|
protected void |
setBaseAttributes(TypedArray a,
int widthAttr,
int heightAttr)
Fixes the child's width to
ViewGroup.LayoutParams.WRAP_CONTENT and the child's
height to ViewGroup.LayoutParams.WRAP_CONTENT
when not specified in the XML file. |
debug, encodeProperties
copyMarginsFrom, getLayoutDirection, getMarginEnd, getMarginStart, isLayoutRtl, isMarginRelative, onDebugDraw, resolveLayoutDirection, setLayoutDirection, setMarginEnd, setMargins, setMarginsRelative, setMarginStart
sizeToString
public LayoutParams(Context c, AttributeSet attrs)
public LayoutParams(int w, int h)
public LayoutParams(int w, int h, float initWeight)
public LayoutParams(ViewGroup.LayoutParams p)
public LayoutParams(ViewGroup.MarginLayoutParams source)
protected void setBaseAttributes(TypedArray a, int widthAttr, int heightAttr)
Fixes the child's width to
ViewGroup.LayoutParams.WRAP_CONTENT
and the child's
height to ViewGroup.LayoutParams.WRAP_CONTENT
when not specified in the XML file.
setBaseAttributes
in class ViewGroup.LayoutParams
a
- the styled attributes setwidthAttr
- the width attribute to fetchheightAttr
- the height attribute to fetch