Class

LayoutDirection

A class for defining layout directions.

Source set: Common
public enum class LayoutDirection {
    /** Horizontal layout direction is from Left to Right. */
    Ltr,

    /** Horizontal layout direction is from Right to Left. */
    Rtl,
}

A class for defining layout directions.

A layout direction can be left-to-right (LTR) or right-to-left (RTL).

Members

Ltr

Source set: Common
Ltr

Horizontal layout direction is from Left to Right.

Rtl

Source set: Common
Rtl

Horizontal layout direction is from Right to Left.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: