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/textview_direction_rtl"
     19         android:layout_width="fill_parent"
     20         android:layout_height="fill_parent"
     21         android:layoutDirection="rtl"
     22         android:textDirection="rtl">
     23 
     24         <TableLayout android:orientation="vertical"
     25                       android:layout_width="wrap_content"
     26                       android:layout_height="wrap_content">
     27 
     28             <TableRow>
     29                 <TextView android:text="(unspecified)"
     30                           android:layout_width="wrap_content"
     31                           android:layout_height="wrap_content"
     32                           android:typeface="serif"
     33                           android:layout_marginLeft="7dip"
     34                           android:layout_marginRight="7dip"
     35                           />
     36                 <TextView android:layout_height="wrap_content"
     37                           android:layout_width="wrap_content"
     38                           android:textSize="24dip"
     39                           android:text="@string/textview_hebrew_text"
     40                           android:layout_marginLeft="7dip"
     41                           android:layout_marginRight="7dip"
     42                           android:background="#444444"
     43                           />
     44                 <TextView android:layout_height="wrap_content"
     45                           android:layout_width="wrap_content"
     46                           android:textSize="24dip"
     47                           android:text="@string/textview_latin_text"
     48                           android:layout_marginLeft="7dip"
     49                           android:layout_marginRight="7dip"
     50                           android:background="#444444"
     51                           />
     52                 <TextView android:layout_height="wrap_content"
     53                           android:layout_width="wrap_content"
     54                           android:textSize="24dip"
     55                           android:text="@string/textview_multiline_text"
     56                           android:layout_marginLeft="7dip"
     57                           android:layout_marginRight="7dip"
     58                           android:background="#444444"
     59                           />
     60             </TableRow>
     61 
     62             <TableRow>
     63                 <TextView android:text="inherit"
     64                           android:layout_width="wrap_content"
     65                           android:layout_height="wrap_content"
     66                           android:typeface="serif"
     67                           android:layout_marginLeft="7dip"
     68                           android:layout_marginRight="7dip"
     69                           />
     70                 <TextView android:layout_height="wrap_content"
     71                           android:layout_width="wrap_content"
     72                           android:textSize="24dip"
     73                           android:text="@string/textview_hebrew_text"
     74                           android:textDirection="inherit"
     75                           android:layout_marginLeft="7dip"
     76                           android:layout_marginRight="7dip"
     77                           android:background="#444444"
     78                           />
     79                 <TextView android:layout_height="wrap_content"
     80                           android:layout_width="wrap_content"
     81                           android:textSize="24dip"
     82                           android:text="@string/textview_latin_text"
     83                           android:textDirection="inherit"
     84                           android:layout_marginLeft="7dip"
     85                           android:layout_marginRight="7dip"
     86                           android:background="#444444"
     87                           />
     88                 <TextView android:layout_height="wrap_content"
     89                           android:layout_width="wrap_content"
     90                           android:textSize="24dip"
     91                           android:text="@string/textview_multiline_text"
     92                           android:textDirection="inherit"
     93                           android:layout_marginLeft="7dip"
     94                           android:layout_marginRight="7dip"
     95                           android:background="#444444"
     96                           />
     97             </TableRow>
     98 
     99             <TableRow>
    100                 <TextView android:text="firstStrong"
    101                           android:layout_width="wrap_content"
    102                           android:layout_height="wrap_content"
    103                           android:typeface="serif"
    104                           android:layout_marginLeft="7dip"
    105                           android:layout_marginRight="7dip"
    106                           />
    107                 <TextView android:layout_height="wrap_content"
    108                           android:layout_width="wrap_content"
    109                           android:textSize="24dip"
    110                           android:text="@string/textview_hebrew_text"
    111                           android:textDirection="firstStrong"
    112                           android:layout_marginLeft="7dip"
    113                           android:layout_marginRight="7dip"
    114                           android:background="#444444"
    115                           />
    116                 <TextView android:layout_height="wrap_content"
    117                           android:layout_width="wrap_content"
    118                           android:textSize="24dip"
    119                           android:text="@string/textview_latin_text"
    120                           android:textDirection="firstStrong"
    121                           android:layout_marginLeft="7dip"
    122                           android:layout_marginRight="7dip"
    123                           android:background="#444444"
    124                           />
    125                 <TextView android:layout_height="wrap_content"
    126                           android:layout_width="wrap_content"
    127                           android:textSize="24dip"
    128                           android:text="@string/textview_multiline_text"
    129                           android:textDirection="firstStrong"
    130                           android:layout_marginLeft="7dip"
    131                           android:layout_marginRight="7dip"
    132                           android:background="#444444"
    133                           />
    134             </TableRow>
    135 
    136             <TableRow>
    137                 <TextView android:text="anyRtl"
    138                           android:layout_width="wrap_content"
    139                           android:layout_height="wrap_content"
    140                           android:typeface="serif"
    141                           android:layout_marginLeft="7dip"
    142                           android:layout_marginRight="7dip"
    143                           />
    144                 <TextView android:layout_height="wrap_content"
    145                           android:layout_width="wrap_content"
    146                           android:textSize="24dip"
    147                           android:text="@string/textview_hebrew_text"
    148                           android:textDirection="anyRtl"
    149                           android:layout_marginLeft="7dip"
    150                           android:layout_marginRight="7dip"
    151                           android:background="#444444"
    152                           />
    153                 <TextView android:layout_height="wrap_content"
    154                           android:layout_width="wrap_content"
    155                           android:textSize="24dip"
    156                           android:text="@string/textview_latin_text"
    157                           android:textDirection="anyRtl"
    158                           android:layout_marginLeft="7dip"
    159                           android:layout_marginRight="7dip"
    160                           android:background="#444444"
    161                           />
    162                 <TextView android:layout_height="wrap_content"
    163                           android:layout_width="wrap_content"
    164                           android:textSize="24dip"
    165                           android:text="@string/textview_multiline_text"
    166                           android:textDirection="anyRtl"
    167                           android:layout_marginLeft="7dip"
    168                           android:layout_marginRight="7dip"
    169                           android:background="#444444"
    170                           />
    171             </TableRow>
    172 
    173             <TableRow>
    174                 <TextView android:text="ltr"
    175                           android:layout_width="wrap_content"
    176                           android:layout_height="wrap_content"
    177                           android:typeface="serif"
    178                           android:layout_marginLeft="7dip"
    179                           android:layout_marginRight="7dip"
    180                           />
    181                 <TextView android:layout_height="wrap_content"
    182                           android:layout_width="wrap_content"
    183                           android:textSize="24dip"
    184                           android:text="@string/textview_hebrew_text"
    185                           android:textDirection="ltr"
    186                           android:layout_marginLeft="7dip"
    187                           android:layout_marginRight="7dip"
    188                           android:background="#444444"
    189                           />
    190                 <TextView android:layout_height="wrap_content"
    191                           android:layout_width="wrap_content"
    192                           android:textSize="24dip"
    193                           android:text="@string/textview_latin_text"
    194                           android:textDirection="ltr"
    195                           android:layout_marginLeft="7dip"
    196                           android:layout_marginRight="7dip"
    197                           android:background="#444444"
    198                           />
    199                 <TextView android:layout_height="wrap_content"
    200                           android:layout_width="wrap_content"
    201                           android:textSize="24dip"
    202                           android:text="@string/textview_multiline_text"
    203                           android:textDirection="ltr"
    204                           android:layout_marginLeft="7dip"
    205                           android:layout_marginRight="7dip"
    206                           android:background="#444444"
    207                           />
    208             </TableRow>
    209 
    210             <TableRow>
    211                 <TextView android:text="rtl"
    212                           android:layout_width="wrap_content"
    213                           android:layout_height="wrap_content"
    214                           android:typeface="serif"
    215                           android:layout_marginRight="7dip"
    216                           android:layout_marginLeft="7dip"
    217                           />
    218                 <TextView android:layout_height="wrap_content"
    219                           android:layout_width="wrap_content"
    220                           android:textSize="24dip"
    221                           android:text="@string/textview_hebrew_text"
    222                           android:textDirection="rtl"
    223                           android:layout_marginLeft="7dip"
    224                           android:layout_marginRight="7dip"
    225                           android:background="#444444"
    226                           />
    227                 <TextView android:layout_height="wrap_content"
    228                           android:layout_width="wrap_content"
    229                           android:textSize="24dip"
    230                           android:text="@string/textview_latin_text"
    231                           android:textDirection="rtl"
    232                           android:layout_marginLeft="7dip"
    233                           android:layout_marginRight="7dip"
    234                           android:background="#444444"
    235                           />
    236                 <TextView android:layout_height="wrap_content"
    237                           android:layout_width="wrap_content"
    238                           android:textSize="24dip"
    239                           android:text="@string/textview_multiline_text"
    240                           android:textDirection="rtl"
    241                           android:layout_marginLeft="7dip"
    242                           android:layout_marginRight="7dip"
    243                           android:background="#444444"
    244                           />
    245             </TableRow>
    246 
    247         </TableLayout>
    248 
    249 </FrameLayout>
    250