Most visited

Recently visited

Added in API level 1

RadioGroup.LayoutParams

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

Summary

Inherited XML attributes

From class android.widget.LinearLayout.LayoutParams
From class android.view.ViewGroup.MarginLayoutParams
From class android.view.ViewGroup.LayoutParams

Inherited constants

From class android.view.ViewGroup.LayoutParams

Inherited fields

From class android.widget.LinearLayout.LayoutParams
From class android.view.ViewGroup.MarginLayoutParams
From class 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文件中指定时,将孩子的宽度修改为 WRAP_CONTENT ,将孩子的高度修改为 WRAP_CONTENT

Inherited methods

From class android.widget.LinearLayout.LayoutParams
From class android.view.ViewGroup.MarginLayoutParams
From class android.view.ViewGroup.LayoutParams
From class java.lang.Object

Public constructors

RadioGroup.LayoutParams

Added in API level 1
RadioGroup.LayoutParams (Context c, 
                AttributeSet attrs)

Parameters
c Context
attrs AttributeSet

RadioGroup.LayoutParams

Added in API level 1
RadioGroup.LayoutParams (int w, 
                int h)

Parameters
w int
h int

RadioGroup.LayoutParams

Added in API level 1
RadioGroup.LayoutParams (int w, 
                int h, 
                float initWeight)

Parameters
w int
h int
initWeight float

RadioGroup.LayoutParams

Added in API level 1
RadioGroup.LayoutParams (ViewGroup.LayoutParams p)

Parameters
p ViewGroup.LayoutParams

RadioGroup.LayoutParams

Added in API level 1
RadioGroup.LayoutParams (ViewGroup.MarginLayoutParams source)

Parameters
source ViewGroup.MarginLayoutParams

Protected methods

setBaseAttributes

Added in API level 1
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

Hooray!