SplitAttributes.LayoutDirection


public final class SplitAttributes.LayoutDirection


The layout direction of the primary and secondary activity containers.

Summary

Public fields

static final @NonNull SplitAttributes.LayoutDirection

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

static final @NonNull SplitAttributes.LayoutDirection

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

static final @NonNull SplitAttributes.LayoutDirection

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

static final @NonNull SplitAttributes.LayoutDirection

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

static final @NonNull SplitAttributes.LayoutDirection

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

Public methods

@NonNull String

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

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

See also layoutDirection.

Public methods

toString

public @NonNull String toString()

A string representation of this LayoutDirection.

Returns
@NonNull String

The string representation of the object.