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

? Examples
RadioGroup.LayoutParams( Context c, AttributeSet attrs)

? Examples
RadioGroup.LayoutParams(int w, int h)

? Examples
RadioGroup.LayoutParams(int w, int h, float initWeight)

? Examples
RadioGroup.LayoutParams( ViewGroup.LayoutParams p)

? Examples
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
No examples for this method.
Frequently called with: [Clear]
Portions of this page are reproduced from work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. The original page is available here.