android.widget
public
static
class
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
Attribute name |
Related methods |
|
android:layout_marginBottom |
setMargins(int,int,int,int)
|
Specifies extra space on the bottom side of this view. |
android:layout_marginLeft |
setMargins(int,int,int,int)
|
Specifies extra space on the left side of this view. |
android:layout_marginRight |
setMargins(int,int,int,int)
|
Specifies extra space on the right side of this view. |
android:layout_marginTop |
setMargins(int,int,int,int)
|
Specifies extra space on the top side of this view. |
|
|
|
Value |
|
int |
FILL_PARENT |
Special value for the height or width requested by a View. |
-1 |
0xffffffff |
int |
WRAP_CONTENT |
Special value for the height or width requested by a View. |
-2 |
0xfffffffe |
public |
|
|
int |
bottomMargin |
The bottom margin in pixels of the child. |
public |
|
|
int |
leftMargin |
The left margin in pixels of the child. |
public |
|
|
int |
rightMargin |
The right margin in pixels of the child. |
public |
|
|
int |
topMargin |
The top margin in pixels of the child. |
Public Constructors
Protected Methods
|
|
|
|
|
void |
setMargins(int left, int top, int right, int bottom) |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Public Constructors
public
RadioGroup.LayoutParams(int w, int h)
public
RadioGroup.LayoutParams(int w, int h, float initWeight)
Protected Methods
protected
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
| the styled attributes set |
widthAttr
| the width attribute to fetch |
heightAttr
| the height attribute to fetch
|