Property

layoutDirection

Source set: Android
override var layoutDirection by
        mutableStateOf(
            // We don't use the attached View's layout direction here since that layout direction
            // may not be resolved since composables may be composed without attaching to the
            // RootViewImpl.
            // In Jetpack Compose, use the locale layout direction (i.e. layoutDirection came from
            // configuration) as a default layout direction.
            toLayoutDirection(context.resources.configuration.layoutDirection)
                ?: LayoutDirection.Ltr
        )
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: