relative-left-of

Introduction

The current element is to the left of the sibling element specified corresponding to id in relative-layout.

Examples

Values

none

Default Value. Act as not set this property.

<number>

int only. Specifies the sibling element number.(refer to relative-id).

INFO

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.

Syntax

relative-left-of: none;
relative-left-of: 1;
relative-left-of: 2;

Formal definition

Initial valuenone
Applies torelative items
Inheritedno
Animatable

Formal syntax

relative-left-of = none | <number>

Difference between web

  • There is no such style in web.

Compatibility

LCD tables only load in the browser

Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.