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
static val INHERIT: Int
Horizontal layout direction is inherited.
Value: 2LOCALE
static val LOCALE: Int
Horizontal layout direction is deduced from the default language script for the locale.
Value: 3LTR
static val LTR: Int
Horizontal layout direction is from Left to Right.
Value: 0RTL
static val RTL: Int
Horizontal layout direction is from Right to Left.
Value: 1