Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2011 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 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
     18         android:id="@+id/table_layout_locale"
     19         android:layout_width="fill_parent"
     20         android:layout_height="fill_parent">
     21 
     22     <LinearLayout android:orientation="vertical"
     23                   android:layout_width="match_parent"
     24                   android:layout_height="match_parent"
     25                   android:layoutDirection="locale">
     26 
     27         <TableLayout android:layout_width="wrap_content"
     28                      android:layout_height="wrap_content"
     29                      android:stretchColumns="1,2">
     30 
     31             <TableRow>
     32                 <Button android:layout_height="wrap_content"
     33                         android:layout_width="wrap_content"
     34                         android:text="@string/button1_text"
     35                         android:textSize="24dip"
     36                         />
     37                 <Button android:layout_height="wrap_content"
     38                         android:layout_width="wrap_content"
     39                         android:text="@string/button_right_text"
     40                         android:textSize="24dip"
     41                         android:gravity="right"
     42                         />
     43                 <Button android:layout_height="wrap_content"
     44                         android:layout_width="wrap_content"
     45                         android:text="@string/button_after_text"
     46                         android:textSize="24dip"
     47                         android:gravity="end"
     48                         />
     49             </TableRow>
     50 
     51             <TableRow>
     52                 <Button android:layout_height="wrap_content"
     53                         android:layout_width="wrap_content"
     54                         android:text="@string/button2_text"
     55                         android:textSize="24dip"
     56                         />
     57                 <Button android:layout_height="wrap_content"
     58                         android:layout_width="wrap_content"
     59                         android:text="@string/button_left_text"
     60                         android:textSize="24dip"
     61                         android:gravity="left"
     62                         />
     63                 <Button android:layout_height="wrap_content"
     64                         android:layout_width="wrap_content"
     65                         android:text="@string/button_before_text"
     66                         android:textSize="24dip"
     67                         android:gravity="start"
     68                         />
     69             </TableRow>
     70         </TableLayout>
     71 
     72         <TableLayout android:layout_width="wrap_content"
     73                      android:layout_height="wrap_content"
     74                      android:stretchColumns="1,2"
     75                      android:layoutDirection="inherit">
     76 
     77             <TableRow>
     78                 <Button android:layout_height="wrap_content"
     79                         android:layout_width="wrap_content"
     80                         android:text="@string/button1_text"
     81                         android:textSize="24dip"
     82                         />
     83                 <Button android:layout_height="wrap_content"
     84                         android:layout_width="wrap_content"
     85                         android:text="@string/button_right_text"
     86                         android:textSize="24dip"
     87                         android:gravity="right"
     88                         />
     89                 <Button android:layout_height="wrap_content"
     90                         android:layout_width="wrap_content"
     91                         android:text="@string/button_after_text"
     92                         android:textSize="24dip"
     93                         android:gravity="end"
     94                         />
     95             </TableRow>
     96 
     97             <TableRow>
     98                 <Button android:layout_height="wrap_content"
     99                         android:layout_width="wrap_content"
    100                         android:text="@string/button2_text"
    101                         android:textSize="24dip"
    102                         />
    103                 <Button android:layout_height="wrap_content"
    104                         android:layout_width="wrap_content"
    105                         android:text="@string/button_left_text"
    106                         android:textSize="24dip"
    107                         android:gravity="left"
    108                         />
    109                 <Button android:layout_height="wrap_content"
    110                         android:layout_width="wrap_content"
    111                         android:text="@string/button_before_text"
    112                         android:textSize="24dip"
    113                         android:gravity="start"
    114                         />
    115             </TableRow>
    116         </TableLayout>
    117 
    118         <TableLayout android:layout_width="wrap_content"
    119                      android:layout_height="wrap_content"
    120                      android:stretchColumns="1,2"
    121                      android:layoutDirection="ltr">
    122 
    123             <TableRow>
    124                 <Button android:layout_height="wrap_content"
    125                         android:layout_width="wrap_content"
    126                         android:text="@string/button1_text"
    127                         android:textSize="24dip"
    128                         />
    129                 <Button android:layout_height="wrap_content"
    130                         android:layout_width="wrap_content"
    131                         android:text="@string/button_right_text"
    132                         android:textSize="24dip"
    133                         android:gravity="right"
    134                         />
    135                 <Button android:layout_height="wrap_content"
    136                         android:layout_width="wrap_content"
    137                         android:text="@string/button_after_text"
    138                         android:textSize="24dip"
    139                         android:gravity="end"
    140                         />
    141             </TableRow>
    142 
    143             <TableRow>
    144                 <Button android:layout_height="wrap_content"
    145                         android:layout_width="wrap_content"
    146                         android:text="@string/button2_text"
    147                         android:textSize="24dip"
    148                         />
    149                 <Button android:layout_height="wrap_content"
    150                         android:layout_width="wrap_content"
    151                         android:text="@string/button_left_text"
    152                         android:textSize="24dip"
    153                         android:gravity="left"
    154                         />
    155                 <Button android:layout_height="wrap_content"
    156                         android:layout_width="wrap_content"
    157                         android:text="@string/button_before_text"
    158                         android:textSize="24dip"
    159                         android:gravity="start"
    160                         />
    161             </TableRow>
    162         </TableLayout>
    163 
    164         <TableLayout android:layout_width="wrap_content"
    165                      android:layout_height="wrap_content"
    166                      android:stretchColumns="1,2"
    167                      android:layoutDirection="rtl">
    168 
    169             <TableRow>
    170                 <Button android:layout_height="wrap_content"
    171                         android:layout_width="wrap_content"
    172                         android:text="@string/button1_text"
    173                         android:textSize="24dip"
    174                         />
    175                 <Button android:layout_height="wrap_content"
    176                         android:layout_width="wrap_content"
    177                         android:text="@string/button_right_text"
    178                         android:textSize="24dip"
    179                         android:gravity="right"
    180                         />
    181                 <Button android:layout_height="wrap_content"
    182                         android:layout_width="wrap_content"
    183                         android:text="@string/button_after_text"
    184                         android:textSize="24dip"
    185                         android:gravity="end"
    186                         />
    187             </TableRow>
    188 
    189             <TableRow>
    190                 <Button android:layout_height="wrap_content"
    191                         android:layout_width="wrap_content"
    192                         android:text="@string/button2_text"
    193                         android:textSize="24dip"
    194                         />
    195                 <Button android:layout_height="wrap_content"
    196                         android:layout_width="wrap_content"
    197                         android:text="@string/button_left_text"
    198                         android:textSize="24dip"
    199                         android:gravity="left"
    200                         />
    201                 <Button android:layout_height="wrap_content"
    202                         android:layout_width="wrap_content"
    203                         android:text="@string/button_before_text"
    204                         android:textSize="24dip"
    205                         android:gravity="start"
    206                         />
    207             </TableRow>
    208         </TableLayout>
    209 
    210         <TableLayout android:layout_width="wrap_content"
    211                      android:layout_height="wrap_content"
    212                      android:stretchColumns="1,2"
    213                      android:layoutDirection="locale">
    214 
    215             <TableRow>
    216                 <Button android:layout_height="wrap_content"
    217                         android:layout_width="wrap_content"
    218                         android:text="@string/button1_text"
    219                         android:textSize="24dip"
    220                         />
    221                 <Button android:layout_height="wrap_content"
    222                         android:layout_width="wrap_content"
    223                         android:text="@string/button_right_text"
    224                         android:textSize="24dip"
    225                         android:gravity="right"
    226                         />
    227                 <Button android:layout_height="wrap_content"
    228                         android:layout_width="wrap_content"
    229                         android:text="@string/button_after_text"
    230                         android:textSize="24dip"
    231                         android:gravity="end"
    232                         />
    233             </TableRow>
    234 
    235             <TableRow>
    236                 <Button android:layout_height="wrap_content"
    237                         android:layout_width="wrap_content"
    238                         android:text="@string/button2_text"
    239                         android:textSize="24dip"
    240                         />
    241                 <Button android:layout_height="wrap_content"
    242                         android:layout_width="wrap_content"
    243                         android:text="@string/button_left_text"
    244                         android:textSize="24dip"
    245                         android:gravity="left"
    246                         />
    247                 <Button android:layout_height="wrap_content"
    248                         android:layout_width="wrap_content"
    249                         android:text="@string/button_before_text"
    250                         android:textSize="24dip"
    251                         android:gravity="start"
    252                         />
    253             </TableRow>
    254         </TableLayout>
    255 
    256     </LinearLayout>
    257 
    258 </FrameLayout>