SplitAttributes.LayoutDirection


class SplitAttributes.LayoutDirection


The layout direction of the primary and secondary activity containers.

Summary

Public companion properties

SplitAttributes.LayoutDirection

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

SplitAttributes.LayoutDirection

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

SplitAttributes.LayoutDirection

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

SplitAttributes.LayoutDirection

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

SplitAttributes.LayoutDirection

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

Public functions

open String

A string representation of this LayoutDirection.

Public companion properties

BOTTOM_TO_TOP

val BOTTOM_TO_TOPSplitAttributes.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 WindowSdkExtensions.extensionVersion is less than 2, layout direction falls back to LOCALE.

See also layoutDirection.

LEFT_TO_RIGHT

val LEFT_TO_RIGHTSplitAttributes.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 layoutDirection.

LOCALE

val LOCALESplitAttributes.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 layoutDirection.

RIGHT_TO_LEFT

val RIGHT_TO_LEFTSplitAttributes.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 layoutDirection.

TOP_TO_BOTTOM

val TOP_TO_BOTTOMSplitAttributes.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 WindowSdkExtensions.extensionVersion is less than 2, layout direction falls back to LOCALE.

See also layoutDirection.

Public functions

toString

open fun toString(): String

A string representation of this LayoutDirection.

Returns
String

The string representation of the object.