Added in API level 19

LayoutDirection


class LayoutDirection
kotlin.Any
   ↳ android.util.LayoutDirection

A class for defining layout directions. A layout direction can be left-to-right (LTR) or right-to-left (RTL). It can also be inherited (from a parent) or deduced from the default language script of a locale.

Summary

Constants
static Int

Horizontal layout direction is inherited.

static Int

Horizontal layout direction is deduced from the default language script for the locale.

static Int

Horizontal layout direction is from Left to Right.

static Int

Horizontal layout direction is from Right to Left.

Constants

INHERIT

Added in API level 19
static val INHERIT: Int

Horizontal layout direction is inherited.

Value: 2

LOCALE

Added in API level 19
static val LOCALE: Int

Horizontal layout direction is deduced from the default language script for the locale.

Value: 3

LTR

Added in API level 19
static val LTR: Int

Horizontal layout direction is from Left to Right.

Value: 0

RTL

Added in API level 19
static val RTL: Int

Horizontal layout direction is from Right to Left.

Value: 1