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


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.

Summary

Inherited XML attributes

Inherited constants

Inherited fields

Public constructors

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)

Protected methods

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.

Inherited methods

Public constructors

LayoutParams

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

Parameters
c Context

attrs AttributeSet

LayoutParams

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

Parameters
w int

h int

LayoutParams

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

Parameters
w int

h int

initWeight float

LayoutParams

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

Parameters
p ViewGroup.LayoutParams

LayoutParams

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

Parameters
source ViewGroup.MarginLayoutParams

Protected methods

setBaseAttributes

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

Parameters
a TypedArray: the styled attributes set

widthAttr int: the width attribute to fetch

heightAttr int: the height attribute to fetch