public static class RelativeRadioGroup.LayoutParams
extends android.widget.RelativeLayout.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 {android.R.styleable#LinearLayout_Layout 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(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. |
addRule, addRule, debug, getRule, getRules, removeRule, resolveLayoutDirectionpublic LayoutParams(android.content.Context c,
android.util.AttributeSet attrs)
public LayoutParams(int w,
int h)
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 android.view.ViewGroup.LayoutParamsa - the styled attributes setwidthAttr - the width attribute to fetchheightAttr - the height attribute to fetch