In relative-layout, specifies that the current element is aligned with the top edge of the parent or sibling element corresponding to id
.
none
Default Value. Does not align on the top edge.
parent
The top edge is aligned with the parent element.
<number>
int
only. The top edge is aligned with the sibling element corresponding to this value(refer to relative-id
).
Attention please when setting relative-id
: -1
and 0
are special values. -1
is the default value, indicating that the current element will not be considered as the alignment reference standard for sibling elements. Using 0
as an element ID is not allowed, as it will result in unexpected behavior.
Initial value | none |
Applies to | relative items |
Inherited | no |
Animatable |
LCD tables only load in the browser