java.lang.Object | ||||
android.view.ViewGroup.LayoutParams | ||||
android.view.ViewGroup.MarginLayoutParams | ||||
android.widget.RelativeLayout.LayoutParams |
Per-child layout information associated with RelativeLayout.
Attribute name | Related methods | |
---|---|---|
android:layout_above | Positions the bottom edge of this view above the given anchor view ID. | |
android:layout_alignBaseline | Positions the baseline of this view on the baseline of the given anchor view ID. | |
android:layout_alignBottom | Makes the bottom edge of this view match the bottom edge of the given anchor view ID. | |
android:layout_alignLeft | Makes the left edge of this view match the left edge of the given anchor view ID. | |
android:layout_alignParentBottom | f true, makes the bottom edge of this view match the bottom edge of the parent. | |
android:layout_alignParentLeft | If true, makes the left edge of this view match the left edge of the parent. | |
android:layout_alignParentRight | If true, makes the right edge of this view match the right edge of the parent. | |
android:layout_alignParentTop | If true, makes the top edge of this view match the top edge of the parent. | |
android:layout_alignRight | Makes the right edge of this view match the right edge of the given anchor view ID. | |
android:layout_alignTop | Makes the top edge of this view match the top edge of the given anchor view ID. | |
android:layout_alignWithParentIfMissing | If set to true, the parent will be used as the anchor when the anchor cannot be be found for layout_toLeftOf, layout_toRightOf, etc. | |
android:layout_below | Positions the top edge of this view below the given anchor view ID. | |
android:layout_centerHorizontal | If true, centers this child horizontally within its parent. | |
android:layout_centerInParent | If true, centers this child horizontally and vertically within its parent. | |
android:layout_centerVertical | If true, centers this child vertically within its parent. | |
android:layout_toLeftOf | Positions the right edge of this view to the left of the given anchor view ID. | |
android:layout_toRightOf | Positions the left edge of this view to the right of the given anchor view ID. |
public | boolean | alignWithParent | When true, uses the parent as the anchor if the anchor doesn't exist or if the anchor's visibility is GONE. |
RelativeLayout.LayoutParams(Context c, AttributeSet attrs) | ||||||
RelativeLayout.LayoutParams(int w, int h) | ||||||
RelativeLayout.LayoutParams(ViewGroup.LayoutParams source) | ||||||
RelativeLayout.LayoutParams(ViewGroup.MarginLayoutParams source) | ||||||
void | addRule(int verb, int anchor) | |||||
Adds a layout rule to be interpreted by the RelativeLayout. | ||||||
void | addRule(int verb) | |||||
Adds a layout rule to be interpreted by the RelativeLayout. | ||||||
String | debug(String output) | |||||
Returns a String representation of this set of layout parameters. | ||||||
int[] | getRules() | |||||
Retrieves a complete list of all supported rules, where the index is the rule verb, and the element value is the value specified, or "false" if it was never set. |
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol layout_above.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol layout_alignBaseline.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol layout_alignBottom.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol layout_alignLeft.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol layout_alignParentBottom.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol layout_alignParentLeft.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol layout_alignParentRight.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol layout_alignParentTop.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol layout_alignRight.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol layout_alignTop.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol layout_alignWithParentIfMissing.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol layout_below.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol layout_centerHorizontal.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol layout_centerInParent.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This corresponds to the global attribute resource symbol layout_centerVertical.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol layout_toLeftOf.
Must be a reference to another resource, in the form "@[+][package:]type:name
"
or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symbol layout_toRightOf.
verb | One of the verbs defined by RelativeLayout, such as ALIGN_WITH_PARENT_LEFT. |
---|---|
anchor | The id of another view to use as an anchor, or a boolean value(represented as TRUE) for true or 0 for false). For verbs that don't refer to another sibling (for example, ALIGN_WITH_PARENT_BOTTOM) just use -1. |
verb | One of the verbs defined by RelativeLayout, such as ALIGN_WITH_PARENT_LEFT. |
---|
output | the String to prepend to the internal representation |
---|
Copyright 2007 Google Inc. | Build 0.9_r1-98467 - 14 Aug 2008 18:48 |