Skip to content

Most visited

Recently visited

navigation

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 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

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)

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

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)

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 TypedArray: the styled attributes set

widthAttr int: the width attribute to fetch

heightAttr int: the height attribute to fetch

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.