Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.

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

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)

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

RadioGroup.LayoutParams

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

Parameters
c Context

attrs AttributeSet

RadioGroup.LayoutParams

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

Parameters
w int

h int

RadioGroup.LayoutParams

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

Parameters
w int

h int

initWeight float

RadioGroup.LayoutParams

added in API level 1
public RadioGroup.LayoutParams (ViewGroup.LayoutParams p)

Parameters
p ViewGroup.LayoutParams

RadioGroup.LayoutParams

added in API level 1
public RadioGroup.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