• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2013 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package android.util;
18 
19 /**
20  * A class for defining layout directions. A layout direction can be left-to-right (LTR)
21  * or right-to-left (RTL). It can also be inherited (from a parent) or deduced from the default
22  * language script of a locale.
23  */
24 public final class LayoutDirection {
25 
26     // No instantiation
LayoutDirection()27     private LayoutDirection() {}
28 
29     /**
30      * Horizontal layout direction is from Left to Right.
31      */
32     public static final int LTR = 0;
33 
34     /**
35      * Horizontal layout direction is from Right to Left.
36      */
37     public static final int RTL = 1;
38 
39     /**
40      * Horizontal layout direction is inherited.
41      */
42     public static final int INHERIT = 2;
43 
44     /**
45      * Horizontal layout direction is deduced from the default language script for the locale.
46      */
47     public static final int LOCALE = 3;
48 }
49