Class

Orientation

Class to define possible directions in which common gesture modifiers like draggable and scrollable can drag.

Source set: Common
public enum class Orientation {
    /** Vertical orientation representing Y axis */
    Vertical,

    /**
     * Horizontal orientation representing X axis.
     *
     * Note: this value specifies just the axis, not the direction (left-to-right or right-to-left).
     * To support RTL cases, use `reverseDirection = true` on [scrollable] and [draggable].
     */
    Horizontal,
}

Class to define possible directions in which common gesture modifiers like draggable and scrollable can drag.

Members

Vertical

Source set: Common
Vertical

Vertical orientation representing Y axis

Horizontal

Source set: Common
Horizontal

Horizontal orientation representing X axis.

Note: this value specifies just the axis, not the direction (left-to-right or right-to-left). To support RTL cases, use reverseDirection = true on scrollable and draggable.

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: