Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3  * Copyright (C) 2012 The Android Open Source Project.
      4  *
      5  * Licensed under the Apache License, Version 2.0 (the "License");
      6  * you may not use this file except in compliance with the License.
      7  * You may obtain a copy of the License at
      8  *
      9  *      http://www.apache.org/licenses/LICENSE-2.0
     10  *
     11  * Unless required by applicable law or agreed to in writing, software
     12  * distributed under the License is distributed on an "AS IS" BASIS,
     13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14  * See the License for the specific language governing permissions and
     15  * limitations under the License.
     16  -->
     17 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     18               android:layout_width="match_parent"
     19               android:layout_height="wrap_content"
     20               android:orientation="vertical">
     21 
     22     <LinearLayout android:id="@+id/layout_linearlayout_ltr"
     23                   android:layout_width="wrap_content"
     24                   android:layout_height="wrap_content"
     25                   android:layoutDirection="ltr">
     26 
     27         <LinearLayout android:id="@+id/layout_linearlayout_ltr_child_1"
     28                       android:layout_width="wrap_content"
     29                       android:layout_height="wrap_content"
     30                       android:layoutDirection="ltr" />
     31 
     32         <LinearLayout android:id="@+id/layout_linearlayout_ltr_child_2"
     33                       android:layout_width="wrap_content"
     34                       android:layout_height="wrap_content"
     35                       android:layoutDirection="rtl" />
     36 
     37         <LinearLayout android:id="@+id/layout_linearlayout_ltr_child_3"
     38                       android:layout_width="wrap_content"
     39                       android:layout_height="wrap_content"
     40                       android:layoutDirection="inherit" />
     41 
     42         <LinearLayout android:id="@+id/layout_linearlayout_ltr_child_4"
     43                       android:layout_width="wrap_content"
     44                       android:layout_height="wrap_content"
     45                       android:layoutDirection="locale" />
     46 
     47     </LinearLayout>
     48 
     49     <LinearLayout android:id="@+id/layout_linearlayout_rtl"
     50                   android:layout_width="wrap_content"
     51                   android:layout_height="wrap_content"
     52                   android:layoutDirection="rtl">
     53 
     54         <LinearLayout android:id="@+id/layout_linearlayout_rtl_child_1"
     55                       android:layout_width="wrap_content"
     56                       android:layout_height="wrap_content"
     57                       android:layoutDirection="ltr" />
     58 
     59         <LinearLayout android:id="@+id/layout_linearlayout_rtl_child_2"
     60                       android:layout_width="wrap_content"
     61                       android:layout_height="wrap_content"
     62                       android:layoutDirection="rtl" />
     63 
     64         <LinearLayout android:id="@+id/layout_linearlayout_rtl_child_3"
     65                       android:layout_width="wrap_content"
     66                       android:layout_height="wrap_content"
     67                       android:layoutDirection="inherit" />
     68 
     69         <LinearLayout android:id="@+id/layout_linearlayout_rtl_child_4"
     70                       android:layout_width="wrap_content"
     71                       android:layout_height="wrap_content"
     72                       android:layoutDirection="locale" />
     73 
     74     </LinearLayout>
     75 
     76     <LinearLayout android:id="@+id/layout_linearlayout_locale"
     77                   android:layout_width="wrap_content"
     78                   android:layout_height="wrap_content"
     79                   android:layoutDirection="locale">
     80 
     81         <LinearLayout android:id="@+id/layout_linearlayout_locale_child_1"
     82                       android:layout_width="wrap_content"
     83                       android:layout_height="wrap_content"
     84                       android:layoutDirection="ltr" />
     85 
     86         <LinearLayout android:id="@+id/layout_linearlayout_locale_child_2"
     87                       android:layout_width="wrap_content"
     88                       android:layout_height="wrap_content"
     89                       android:layoutDirection="rtl" />
     90 
     91         <LinearLayout android:id="@+id/layout_linearlayout_locale_child_3"
     92                       android:layout_width="wrap_content"
     93                       android:layout_height="wrap_content"
     94                       android:layoutDirection="inherit" />
     95 
     96         <LinearLayout android:id="@+id/layout_linearlayout_locale_child_4"
     97                       android:layout_width="wrap_content"
     98                       android:layout_height="wrap_content"
     99                       android:layoutDirection="locale" />
    100 
    101     </LinearLayout>
    102 
    103     <LinearLayout android:id="@+id/layout_linearlayout_inherit"
    104                   android:layout_width="wrap_content"
    105                   android:layout_height="wrap_content"
    106                   android:layoutDirection="inherit">
    107 
    108         <LinearLayout android:id="@+id/layout_linearlayout_inherit_child_1"
    109                       android:layout_width="wrap_content"
    110                       android:layout_height="wrap_content"
    111                       android:layoutDirection="ltr" />
    112 
    113         <LinearLayout android:id="@+id/layout_linearlayout_inherit_child_2"
    114                       android:layout_width="wrap_content"
    115                       android:layout_height="wrap_content"
    116                       android:layoutDirection="rtl" />
    117 
    118         <LinearLayout android:id="@+id/layout_linearlayout_inherit_child_3"
    119                       android:layout_width="wrap_content"
    120                       android:layout_height="wrap_content"
    121                       android:layoutDirection="inherit" />
    122 
    123         <LinearLayout android:id="@+id/layout_linearlayout_inherit_child_4"
    124                       android:layout_width="wrap_content"
    125                       android:layout_height="wrap_content"
    126                       android:layoutDirection="locale" />
    127 
    128     </LinearLayout>
    129 
    130 </LinearLayout>
    131