# SplitAttributes.LayoutDirection

Artifact: [androidx.window:window](https://developer.android.com/jetpack/androidx/releases/window) [View Source](https://cs.android.com/search?q=file:androidx/window/embedding/SplitAttributes.kt+class:androidx.window.embedding.SplitAttributes.LayoutDirection) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/window#1.1.0)

*** ** * ** ***

<br />

```
class SplitAttributes.LayoutDirection
```

<br />

*** ** * ** ***

The layout direction of the primary and secondary activity containers.

## Summary

| ### Public companion properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitAttributes.LayoutDirection` | `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitAttributes.LayoutDirection#BOTTOM_TO_TOP()` Specifies that the parent bounds are split horizontally (top and bottom). |
| `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitAttributes.LayoutDirection` | `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitAttributes.LayoutDirection#LEFT_TO_RIGHT()` Specifies that the parent bounds are split vertically (side to side). |
| `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitAttributes.LayoutDirection` | `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitAttributes.LayoutDirection#LOCALE()` Specifies that the parent bounds are split vertically (side to side). |
| `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitAttributes.LayoutDirection` | `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitAttributes.LayoutDirection#RIGHT_TO_LEFT()` Specifies that the parent bounds are split vertically (side to side). |
| `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitAttributes.LayoutDirection` | `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitAttributes.LayoutDirection#TOP_TO_BOTTOM()` Specifies that the parent bounds are split horizontally (top and bottom). |

| ### Public functions |
|---|---|
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitAttributes.LayoutDirection#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitAttributes.LayoutDirection#hashCode()()` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitAttributes.LayoutDirection#toString()()` A string representation of this `LayoutDirection`. |

## Public companion properties

### BOTTOM_TO_TOP

```
val BOTTOM_TO_TOP: SplitAttributes.LayoutDirection
```

Specifies that the parent bounds are split horizontally (top and bottom).

Places the primary container in the bottom portion of the parent window, and the secondary container in the top portion.

![]()

If the horizontal layout direction is not supported on the device that `https://developer.android.com/reference/kotlin/androidx/window/WindowSdkExtensions#extensionVersion()` is less than 2, layout direction falls back to `LOCALE`.

See also `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitAttributes#layoutDirection()`.

### LEFT_TO_RIGHT

```
val LEFT_TO_RIGHT: SplitAttributes.LayoutDirection
```

Specifies that the parent bounds are split vertically (side to side).

Places the primary container in the left portion of the parent window, and the secondary container in the right portion.

![]()

See also `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitAttributes#layoutDirection()`.

### LOCALE

```
val LOCALE: SplitAttributes.LayoutDirection
```

Specifies that the parent bounds are split vertically (side to side).

The direction of the primary and secondary containers is deduced from the locale as either `LEFT_TO_RIGHT` or `RIGHT_TO_LEFT`.

See also `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitAttributes#layoutDirection()`.

### RIGHT_TO_LEFT

```
val RIGHT_TO_LEFT: SplitAttributes.LayoutDirection
```

Specifies that the parent bounds are split vertically (side to side).

Places the primary container in the right portion of the parent window, and the secondary container in the left portion.

![]()

See also `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitAttributes#layoutDirection()`.

### TOP_TO_BOTTOM

```
val TOP_TO_BOTTOM: SplitAttributes.LayoutDirection
```

Specifies that the parent bounds are split horizontally (top and bottom).

Places the primary container in the top portion of the parent window, and the secondary container in the bottom portion.

![]()

If the horizontal layout direction is not supported on the device that `https://developer.android.com/reference/kotlin/androidx/window/WindowSdkExtensions#extensionVersion()` is less than 2, layout direction falls back to `LOCALE`.

See also `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitAttributes#layoutDirection()`.

## Public functions

### equals

```
open operator fun equals(other: Any?): Boolean
```

### hashCode

```
open fun hashCode(): Int
```

### toString

```
open fun toString(): String
```

A string representation of this `LayoutDirection`.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The string representation of the object. |