# 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 />

```
public final class SplitAttributes.LayoutDirection
```

<br />

*** ** * ** ***

The layout direction of the primary and secondary activity containers.

## Summary

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

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/window/embedding/SplitAttributes.LayoutDirection#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `int` | `https://developer.android.com/reference/androidx/window/embedding/SplitAttributes.LayoutDirection#hashCode()()` |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/window/embedding/SplitAttributes.LayoutDirection#toString()()` A string representation of this `LayoutDirection`. |

## Public fields

### BOTTOM_TO_TOP

```
public static final @NonNull SplitAttributes.LayoutDirection BOTTOM_TO_TOP
```

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/androidx/window/WindowSdkExtensions#extensionVersion()` is less than 2, layout direction falls back to `LOCALE`.

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

### LEFT_TO_RIGHT

```
public static final @NonNull SplitAttributes.LayoutDirection LEFT_TO_RIGHT
```

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/androidx/window/embedding/SplitAttributes#layoutDirection()`.

### LOCALE

```
public static final @NonNull SplitAttributes.LayoutDirection LOCALE
```

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/androidx/window/embedding/SplitAttributes#layoutDirection()`.

### RIGHT_TO_LEFT

```
public static final @NonNull SplitAttributes.LayoutDirection RIGHT_TO_LEFT
```

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/androidx/window/embedding/SplitAttributes#layoutDirection()`.

### TOP_TO_BOTTOM

```
public static final @NonNull SplitAttributes.LayoutDirection TOP_TO_BOTTOM
```

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/androidx/window/WindowSdkExtensions#extensionVersion()` is less than 2, layout direction falls back to `LOCALE`.

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

## Public methods

### equals

```
public boolean equals(Object other)
```

### hashCode

```
public int hashCode()
```

### toString

```
public @NonNull String toString()
```

A string representation of this `LayoutDirection`.

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | The string representation of the object. |