public static class RadioGroup.LayoutParams
extends LinearLayout.LayoutParams
| java.lang.Object | ||||
| android.view.ViewGroup.LayoutParams | ||||
| android.view.ViewGroup.MarginLayoutParams | ||||
| android.widget.LinearLayout.LayoutParams | ||||
| android.widget.RadioGroup.LayoutParams | ||||
在XML文件中未指定时,这组布局参数将默认宽度和高度为WRAP_CONTENT 。 否则,这个类使用从XML文件中读取的值。
有关 LinearLayout Attributes支持的所有子视图属性的列表,请参见 LinearLayout Attributes 。
Inherited XML attributes |
|
|---|---|
android.widget.LinearLayout.LayoutParams
|
|
android.view.ViewGroup.MarginLayoutParams
|
|
android.view.ViewGroup.LayoutParams
|
|
Inherited constants |
|---|
android.view.ViewGroup.LayoutParams
|
Inherited fields |
|---|
android.widget.LinearLayout.LayoutParams
|
android.view.ViewGroup.MarginLayoutParams
|
android.view.ViewGroup.LayoutParams
|
Public constructors |
|
|---|---|
RadioGroup.LayoutParams(Context c, AttributeSet attrs) |
|
RadioGroup.LayoutParams(int w, int h) |
|
RadioGroup.LayoutParams(int w, int h, float initWeight) |
|
RadioGroup.LayoutParams(ViewGroup.LayoutParams p) |
|
RadioGroup.LayoutParams(ViewGroup.MarginLayoutParams source) |
|
Protected methods |
|
|---|---|
void |
setBaseAttributes(TypedArray a, int widthAttr, int heightAttr) 未在XML文件中指定时,将孩子的宽度修改为 |
继承方法(Inherited methods) |
|
|---|---|
android.widget.LinearLayout.LayoutParams
|
|
android.view.ViewGroup.MarginLayoutParams
|
|
android.view.ViewGroup.LayoutParams
|
|
java.lang.Object
|
|
RadioGroup.LayoutParams (Context c, AttributeSet attrs)
| 参数(Parameters) | |
|---|---|
c |
Context
|
attrs |
AttributeSet
|
RadioGroup.LayoutParams (int w,
int h)
| 参数(Parameters) | |
|---|---|
w |
int
|
h |
int
|
RadioGroup.LayoutParams (int w,
int h,
float initWeight)
| 参数(Parameters) | |
|---|---|
w |
int
|
h |
int
|
initWeight |
float
|
RadioGroup.LayoutParams (ViewGroup.LayoutParams p)
| 参数(Parameters) | |
|---|---|
p |
ViewGroup.LayoutParams
|
RadioGroup.LayoutParams (ViewGroup.MarginLayoutParams source)
| 参数(Parameters) | |
|---|---|
source |
ViewGroup.MarginLayoutParams
|
void setBaseAttributes (TypedArray a, int widthAttr, int heightAttr)
未在XML文件中指定时,将孩子的宽度修改为 WRAP_CONTENT ,将孩子的高度修改为 WRAP_CONTENT 。
| 参数(Parameters) | |
|---|---|
a |
TypedArray: the styled attributes set |
widthAttr |
int: the width attribute to fetch |
heightAttr |
int: the height attribute to fetch |