to top
Android APIs
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

Class Overview

This set of layout parameters defaults the width and the height of the children to 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

[Expand]
Inherited XML Attributes
From class android.widget.LinearLayout.LayoutParams
From class android.view.ViewGroup.MarginLayoutParams
From class android.view.ViewGroup.LayoutParams
[Expand]
Inherited Constants
From class android.view.ViewGroup.LayoutParams
[Expand]
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)

Fixes the child's width to WRAP_CONTENT and the child's height to WRAP_CONTENT when not specified in the XML file.

[Expand]
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

public RadioGroup.LayoutParams (Context c, AttributeSet attrs)

Added in API level 1

public RadioGroup.LayoutParams (int w, int h)

Added in API level 1

public RadioGroup.LayoutParams (int w, int h, float initWeight)

Added in API level 1

public RadioGroup.LayoutParams (ViewGroup.LayoutParams p)

Added in API level 1

public RadioGroup.LayoutParams (ViewGroup.MarginLayoutParams source)

Added in API level 1

Protected Methods

protected void setBaseAttributes (TypedArray a, int widthAttr, int heightAttr)

Added in API level 1

Fixes the child's width to WRAP_CONTENT and the child's height to WRAP_CONTENT when not specified in the XML file.

Parameters
a the styled attributes set
widthAttr the width attribute to fetch
heightAttr the height attribute to fetch