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.
Constructor and Description |
---|
LayoutParams(android.content.Context c,
android.util.AttributeSet attrs) |
LayoutParams(int w,
int h) |
LayoutParams(int w,
int h,
float initWeight) |
LayoutParams(android.view.ViewGroup.LayoutParams p) |
LayoutParams(android.view.ViewGroup.MarginLayoutParams source) |
Modifier and Type | Method and Description |
---|---|
protected void |
setBaseAttributes(android.content.res.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. |
getAnchorGravity, getAnchorView, getPercentLayoutInfo, setAnchorGravity, setAnchorView
public LayoutParams(android.content.Context c, android.util.AttributeSet attrs)
public LayoutParams(int w, int h)
public LayoutParams(int w, int h, float initWeight)
public LayoutParams(android.view.ViewGroup.LayoutParams p)
public LayoutParams(android.view.ViewGroup.MarginLayoutParams source)
protected void setBaseAttributes(android.content.res.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 LinearLayout.LayoutParams
a
- the styled attributes setwidthAttr
- the width attribute to fetchheightAttr
- the height attribute to fetch