Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2012 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_alignment_ltr"
     19         android:layout_width="fill_parent"
     20         android:layout_height="fill_parent"
     21         android:layoutDirection="ltr">
     22 
     23         <TableLayout android:orientation="vertical"
     24                       android:layout_width="wrap_content"
     25                       android:layout_height="wrap_content">
     26 
     27             <TableRow>
     28                 <TextView android:text="(unspecified)"
     29                           android:layout_width="wrap_content"
     30                           android:layout_height="wrap_content"
     31                           android:typeface="serif"
     32                           android:layout_marginLeft="7dip"
     33                           android:layout_marginRight="7dip"
     34                           />
     35                 <TextView android:layout_height="wrap_content"
     36                           android:layout_width="200dip"
     37                           android:textSize="24dip"
     38                           android:text="@string/textview_text"
     39                           android:layout_marginLeft="7dip"
     40                           android:layout_marginRight="7dip"
     41                           android:background="#444444"
     42                           />
     43                 <TextView android:layout_height="wrap_content"
     44                           android:layout_width="200dip"
     45                           android:textSize="24dip"
     46                           android:text="@string/hebrew_text"
     47                           android:layout_marginLeft="7dip"
     48                           android:layout_marginRight="7dip"
     49                           android:background="#444444"
     50                           />
     51             </TableRow>
     52 
     53             <TableRow>
     54                 <TextView android:text="gravity (default)"
     55                           android:layout_width="wrap_content"
     56                           android:layout_height="wrap_content"
     57                           android:typeface="serif"
     58                           android:layout_marginLeft="7dip"
     59                           android:layout_marginRight="7dip"
     60                           />
     61                 <TextView android:layout_height="wrap_content"
     62                           android:layout_width="200dip"
     63                           android:textSize="24dip"
     64                           android:text="@string/textview_text"
     65                           android:textAlignment="gravity"
     66                           android:layout_marginLeft="7dip"
     67                           android:layout_marginRight="7dip"
     68                           android:background="#444444"
     69                           />
     70                 <TextView android:layout_height="wrap_content"
     71                           android:layout_width="200dip"
     72                           android:textSize="24dip"
     73                           android:text="@string/hebrew_text"
     74                           android:textAlignment="gravity"
     75                           android:layout_marginLeft="7dip"
     76                           android:layout_marginRight="7dip"
     77                           android:background="#444444"
     78                           />
     79             </TableRow>
     80 
     81             <TableRow>
     82                 <TextView android:text="gravity left"
     83                           android:layout_width="wrap_content"
     84                           android:layout_height="wrap_content"
     85                           android:typeface="serif"
     86                           android:layout_marginLeft="7dip"
     87                           android:layout_marginRight="7dip"
     88                           />
     89                 <TextView android:layout_height="wrap_content"
     90                           android:layout_width="200dip"
     91                           android:textSize="24dip"
     92                           android:text="@string/textview_text"
     93                           android:textAlignment="gravity"
     94                           android:gravity="left"
     95                           android:layout_marginLeft="7dip"
     96                           android:layout_marginRight="7dip"
     97                           android:background="#444444"
     98                           />
     99                 <TextView android:layout_height="wrap_content"
    100                           android:layout_width="200dip"
    101                           android:textSize="24dip"
    102                           android:text="@string/hebrew_text"
    103                           android:textAlignment="gravity"
    104                           android:gravity="left"
    105                           android:layout_marginLeft="7dip"
    106                           android:layout_marginRight="7dip"
    107                           android:background="#444444"
    108                           />
    109             </TableRow>
    110 
    111             <TableRow>
    112                 <TextView android:text="gravity right"
    113                           android:layout_width="wrap_content"
    114                           android:layout_height="wrap_content"
    115                           android:typeface="serif"
    116                           android:layout_marginLeft="7dip"
    117                           android:layout_marginRight="7dip"
    118                           />
    119                 <TextView android:layout_height="wrap_content"
    120                           android:layout_width="200dip"
    121                           android:textSize="24dip"
    122                           android:text="@string/textview_text"
    123                           android:textAlignment="gravity"
    124                           android:gravity="right"
    125                           android:layout_marginLeft="7dip"
    126                           android:layout_marginRight="7dip"
    127                           android:background="#444444"
    128                           />
    129                 <TextView android:layout_height="wrap_content"
    130                           android:layout_width="200dip"
    131                           android:textSize="24dip"
    132                           android:text="@string/hebrew_text"
    133                           android:textAlignment="gravity"
    134                           android:gravity="right"
    135                           android:layout_marginLeft="7dip"
    136                           android:layout_marginRight="7dip"
    137                           android:background="#444444"
    138                           />
    139             </TableRow>
    140 
    141             <TableRow>
    142                 <TextView android:text="gravity start"
    143                           android:layout_width="wrap_content"
    144                           android:layout_height="wrap_content"
    145                           android:typeface="serif"
    146                           android:layout_marginLeft="7dip"
    147                           android:layout_marginRight="7dip"
    148                           />
    149                 <TextView android:layout_height="wrap_content"
    150                           android:layout_width="200dip"
    151                           android:textSize="24dip"
    152                           android:text="@string/textview_text"
    153                           android:textAlignment="gravity"
    154                           android:gravity="start"
    155                           android:layout_marginLeft="7dip"
    156                           android:layout_marginRight="7dip"
    157                           android:background="#444444"
    158                           />
    159                 <TextView android:layout_height="wrap_content"
    160                           android:layout_width="200dip"
    161                           android:textSize="24dip"
    162                           android:text="@string/hebrew_text"
    163                           android:textAlignment="gravity"
    164                           android:gravity="start"
    165                           android:layout_marginLeft="7dip"
    166                           android:layout_marginRight="7dip"
    167                           android:background="#444444"
    168                           />
    169             </TableRow>
    170 
    171             <TableRow>
    172                 <TextView android:text="gravity end"
    173                           android:layout_width="wrap_content"
    174                           android:layout_height="wrap_content"
    175                           android:typeface="serif"
    176                           android:layout_marginLeft="7dip"
    177                           android:layout_marginRight="7dip"
    178                           />
    179                 <TextView android:layout_height="wrap_content"
    180                           android:layout_width="200dip"
    181                           android:textSize="24dip"
    182                           android:text="@string/textview_text"
    183                           android:textAlignment="gravity"
    184                           android:gravity="end"
    185                           android:layout_marginLeft="7dip"
    186                           android:layout_marginRight="7dip"
    187                           android:background="#444444"
    188                           />
    189                 <TextView android:layout_height="wrap_content"
    190                           android:layout_width="200dip"
    191                           android:textSize="24dip"
    192                           android:text="@string/hebrew_text"
    193                           android:textAlignment="gravity"
    194                           android:gravity="end"
    195                           android:layout_marginLeft="7dip"
    196                           android:layout_marginRight="7dip"
    197                           android:background="#444444"
    198                           />
    199             </TableRow>
    200 
    201             <TableRow>
    202                 <TextView android:text="gravity center"
    203                           android:layout_width="wrap_content"
    204                           android:layout_height="wrap_content"
    205                           android:typeface="serif"
    206                           android:layout_marginLeft="7dip"
    207                           android:layout_marginRight="7dip"
    208                           />
    209                 <TextView android:layout_height="wrap_content"
    210                           android:layout_width="200dip"
    211                           android:textSize="24dip"
    212                           android:text="@string/textview_text"
    213                           android:textAlignment="gravity"
    214                           android:gravity="center"
    215                           android:layout_marginLeft="7dip"
    216                           android:layout_marginRight="7dip"
    217                           android:background="#444444"
    218                           />
    219                 <TextView android:layout_height="wrap_content"
    220                           android:layout_width="200dip"
    221                           android:textSize="24dip"
    222                           android:text="@string/hebrew_text"
    223                           android:textAlignment="gravity"
    224                           android:gravity="center"
    225                           android:layout_marginLeft="7dip"
    226                           android:layout_marginRight="7dip"
    227                           android:background="#444444"
    228                           />
    229             </TableRow>
    230 
    231             <TableRow>
    232                 <TextView android:text="gravity center_horizontal"
    233                           android:layout_width="wrap_content"
    234                           android:layout_height="wrap_content"
    235                           android:typeface="serif"
    236                           android:layout_marginLeft="7dip"
    237                           android:layout_marginRight="7dip"
    238                           />
    239                 <TextView android:layout_height="wrap_content"
    240                           android:layout_width="200dip"
    241                           android:textSize="24dip"
    242                           android:text="@string/textview_text"
    243                           android:textAlignment="gravity"
    244                           android:gravity="center_horizontal"
    245                           android:layout_marginLeft="7dip"
    246                           android:layout_marginRight="7dip"
    247                           android:background="#444444"
    248                           />
    249                 <TextView android:layout_height="wrap_content"
    250                           android:layout_width="200dip"
    251                           android:textSize="24dip"
    252                           android:text="@string/hebrew_text"
    253                           android:textAlignment="gravity"
    254                           android:gravity="center_horizontal"
    255                           android:layout_marginLeft="7dip"
    256                           android:layout_marginRight="7dip"
    257                           android:background="#444444"
    258                           />
    259             </TableRow>
    260 
    261             <TableRow>
    262                 <TextView android:text="center"
    263                           android:layout_width="wrap_content"
    264                           android:layout_height="wrap_content"
    265                           android:typeface="serif"
    266                           android:layout_marginLeft="7dip"
    267                           android:layout_marginRight="7dip"
    268                           />
    269                 <TextView android:layout_height="wrap_content"
    270                           android:layout_width="200dip"
    271                           android:textSize="24dip"
    272                           android:text="@string/textview_text"
    273                           android:textAlignment="center"
    274                           android:layout_marginLeft="7dip"
    275                           android:layout_marginRight="7dip"
    276                           android:background="#444444"
    277                           />
    278                 <TextView android:layout_height="wrap_content"
    279                           android:layout_width="200dip"
    280                           android:textSize="24dip"
    281                           android:text="@string/hebrew_text"
    282                           android:textAlignment="center"
    283                           android:layout_marginLeft="7dip"
    284                           android:layout_marginRight="7dip"
    285                           android:background="#444444"
    286                           />
    287             </TableRow>
    288 
    289             <TableRow>
    290                 <TextView android:text="textStart"
    291                           android:layout_width="wrap_content"
    292                           android:layout_height="wrap_content"
    293                           android:typeface="serif"
    294                           android:layout_marginLeft="7dip"
    295                           android:layout_marginRight="7dip"
    296                           />
    297                 <TextView android:layout_height="wrap_content"
    298                           android:layout_width="200dip"
    299                           android:textSize="24dip"
    300                           android:text="@string/textview_text"
    301                           android:textAlignment="textStart"
    302                           android:layout_marginLeft="7dip"
    303                           android:layout_marginRight="7dip"
    304                           android:background="#444444"
    305                           />
    306                 <TextView android:layout_height="wrap_content"
    307                           android:layout_width="200dip"
    308                           android:textSize="24dip"
    309                           android:text="@string/hebrew_text"
    310                           android:textAlignment="textStart"
    311                           android:layout_marginLeft="7dip"
    312                           android:layout_marginRight="7dip"
    313                           android:background="#444444"
    314                           />
    315             </TableRow>
    316 
    317             <TableRow>
    318                 <TextView android:text="textEnd"
    319                           android:layout_width="wrap_content"
    320                           android:layout_height="wrap_content"
    321                           android:typeface="serif"
    322                           android:layout_marginLeft="7dip"
    323                           android:layout_marginRight="7dip"
    324                           />
    325                 <TextView android:layout_height="wrap_content"
    326                           android:layout_width="200dip"
    327                           android:textSize="24dip"
    328                           android:text="@string/textview_text"
    329                           android:textAlignment="textEnd"
    330                           android:layout_marginLeft="7dip"
    331                           android:layout_marginRight="7dip"
    332                           android:background="#444444"
    333                           />
    334                 <TextView android:layout_height="wrap_content"
    335                           android:layout_width="200dip"
    336                           android:textSize="24dip"
    337                           android:text="@string/hebrew_text"
    338                           android:textAlignment="textEnd"
    339                           android:layout_marginLeft="7dip"
    340                           android:layout_marginRight="7dip"
    341                           android:background="#444444"
    342                           />
    343             </TableRow>
    344 
    345             <TableRow>
    346                 <TextView android:text="viewStart"
    347                           android:layout_width="wrap_content"
    348                           android:layout_height="wrap_content"
    349                           android:typeface="serif"
    350                           android:layout_marginRight="7dip"
    351                           android:layout_marginLeft="7dip"
    352                           />
    353                 <TextView android:layout_height="wrap_content"
    354                           android:layout_width="200dip"
    355                           android:textSize="24dip"
    356                           android:text="@string/textview_text"
    357                           android:textAlignment="viewStart"
    358                           android:layout_marginLeft="7dip"
    359                           android:layout_marginRight="7dip"
    360                           android:background="#444444"
    361                           />
    362                 <TextView android:layout_height="wrap_content"
    363                           android:layout_width="200dip"
    364                           android:textSize="24dip"
    365                           android:text="@string/hebrew_text"
    366                           android:textAlignment="viewStart"
    367                           android:layout_marginLeft="7dip"
    368                           android:layout_marginRight="7dip"
    369                           android:background="#444444"
    370                           />
    371             </TableRow>
    372 
    373             <TableRow>
    374                 <TextView android:text="viewEnd"
    375                           android:layout_width="wrap_content"
    376                           android:layout_height="wrap_content"
    377                           android:typeface="serif"
    378                           android:layout_marginRight="7dip"
    379                           android:layout_marginLeft="7dip"
    380                           />
    381                 <TextView android:layout_height="wrap_content"
    382                           android:layout_width="200dip"
    383                           android:textSize="24dip"
    384                           android:text="@string/textview_text"
    385                           android:textAlignment="viewEnd"
    386                           android:layout_marginLeft="7dip"
    387                           android:layout_marginRight="7dip"
    388                           android:background="#444444"
    389                           />
    390                 <TextView android:layout_height="wrap_content"
    391                           android:layout_width="200dip"
    392                           android:textSize="24dip"
    393                           android:text="@string/hebrew_text"
    394                           android:textAlignment="viewEnd"
    395                           android:layout_marginLeft="7dip"
    396                           android:layout_marginRight="7dip"
    397                           android:background="#444444"
    398                           />
    399             </TableRow>
    400 
    401             <TableRow android:textAlignment="gravity"
    402                       android:gravity="center_horizontal">
    403 
    404                 <TextView android:text="inherit gravity (default)"
    405                           android:layout_width="wrap_content"
    406                           android:layout_height="wrap_content"
    407                           android:typeface="serif"
    408                           android:layout_marginRight="7dip"
    409                           android:layout_marginLeft="7dip"
    410                         />
    411                 <TextView android:layout_height="wrap_content"
    412                           android:layout_width="200dip"
    413                           android:textSize="24dip"
    414                           android:text="@string/textview_text"
    415                           android:textAlignment="inherit"
    416                           android:layout_marginLeft="7dip"
    417                           android:layout_marginRight="7dip"
    418                           android:background="#444444"
    419                         />
    420                 <TextView android:layout_height="wrap_content"
    421                           android:layout_width="200dip"
    422                           android:textSize="24dip"
    423                           android:text="@string/hebrew_text"
    424                           android:textAlignment="inherit"
    425                           android:layout_marginLeft="7dip"
    426                           android:layout_marginRight="7dip"
    427                           android:background="#444444"
    428                         />
    429             </TableRow>
    430 
    431             <TableRow android:textAlignment="center">
    432 
    433                 <TextView android:text="inherit gravity center"
    434                           android:layout_width="wrap_content"
    435                           android:layout_height="wrap_content"
    436                           android:typeface="serif"
    437                           android:layout_marginRight="7dip"
    438                           android:layout_marginLeft="7dip"
    439                         />
    440                 <TextView android:layout_height="wrap_content"
    441                           android:layout_width="200dip"
    442                           android:textSize="24dip"
    443                           android:text="@string/textview_text"
    444                           android:textAlignment="inherit"
    445                           android:layout_marginLeft="7dip"
    446                           android:layout_marginRight="7dip"
    447                           android:background="#444444"
    448                         />
    449                 <TextView android:layout_height="wrap_content"
    450                           android:layout_width="200dip"
    451                           android:textSize="24dip"
    452                           android:text="@string/hebrew_text"
    453                           android:textAlignment="inherit"
    454                           android:layout_marginLeft="7dip"
    455                           android:layout_marginRight="7dip"
    456                           android:background="#444444"
    457                         />
    458             </TableRow>
    459 
    460             <TableRow android:textAlignment="textStart">
    461 
    462                 <TextView android:text="inherit textStart"
    463                           android:layout_width="wrap_content"
    464                           android:layout_height="wrap_content"
    465                           android:typeface="serif"
    466                           android:layout_marginRight="7dip"
    467                           android:layout_marginLeft="7dip"
    468                         />
    469                 <TextView android:layout_height="wrap_content"
    470                           android:layout_width="200dip"
    471                           android:textSize="24dip"
    472                           android:text="@string/textview_text"
    473                           android:textAlignment="inherit"
    474                           android:layout_marginLeft="7dip"
    475                           android:layout_marginRight="7dip"
    476                           android:background="#444444"
    477                         />
    478                 <TextView android:layout_height="wrap_content"
    479                           android:layout_width="200dip"
    480                           android:textSize="24dip"
    481                           android:text="@string/hebrew_text"
    482                           android:textAlignment="inherit"
    483                           android:layout_marginLeft="7dip"
    484                           android:layout_marginRight="7dip"
    485                           android:background="#444444"
    486                         />
    487             </TableRow>
    488 
    489             <TableRow android:textAlignment="textEnd">
    490 
    491                 <TextView android:text="inherit textEnd"
    492                           android:layout_width="wrap_content"
    493                           android:layout_height="wrap_content"
    494                           android:typeface="serif"
    495                           android:layout_marginRight="7dip"
    496                           android:layout_marginLeft="7dip"
    497                         />
    498                 <TextView android:layout_height="wrap_content"
    499                           android:layout_width="200dip"
    500                           android:textSize="24dip"
    501                           android:text="@string/textview_text"
    502                           android:textAlignment="inherit"
    503                           android:layout_marginLeft="7dip"
    504                           android:layout_marginRight="7dip"
    505                           android:background="#444444"
    506                         />
    507                 <TextView android:layout_height="wrap_content"
    508                           android:layout_width="200dip"
    509                           android:textSize="24dip"
    510                           android:text="@string/hebrew_text"
    511                           android:textAlignment="inherit"
    512                           android:layout_marginLeft="7dip"
    513                           android:layout_marginRight="7dip"
    514                           android:background="#444444"
    515                         />
    516             </TableRow>
    517 
    518             <TableRow android:textAlignment="viewStart">
    519 
    520                 <TextView android:text="inherit viewStart"
    521                           android:layout_width="wrap_content"
    522                           android:layout_height="wrap_content"
    523                           android:typeface="serif"
    524                           android:layout_marginRight="7dip"
    525                           android:layout_marginLeft="7dip"
    526                         />
    527                 <TextView android:layout_height="wrap_content"
    528                           android:layout_width="200dip"
    529                           android:textSize="24dip"
    530                           android:text="@string/textview_text"
    531                           android:textAlignment="inherit"
    532                           android:layout_marginLeft="7dip"
    533                           android:layout_marginRight="7dip"
    534                           android:background="#444444"
    535                         />
    536                 <TextView android:layout_height="wrap_content"
    537                           android:layout_width="200dip"
    538                           android:textSize="24dip"
    539                           android:text="@string/hebrew_text"
    540                           android:textAlignment="inherit"
    541                           android:layout_marginLeft="7dip"
    542                           android:layout_marginRight="7dip"
    543                           android:background="#444444"
    544                         />
    545             </TableRow>
    546 
    547             <TableRow android:textAlignment="viewEnd">
    548 
    549                 <TextView android:text="inherit viewEnd"
    550                           android:layout_width="wrap_content"
    551                           android:layout_height="wrap_content"
    552                           android:typeface="serif"
    553                           android:layout_marginRight="7dip"
    554                           android:layout_marginLeft="7dip"
    555                         />
    556                 <TextView android:layout_height="wrap_content"
    557                           android:layout_width="200dip"
    558                           android:textSize="24dip"
    559                           android:text="@string/textview_text"
    560                           android:textAlignment="inherit"
    561                           android:layout_marginLeft="7dip"
    562                           android:layout_marginRight="7dip"
    563                           android:background="#444444"
    564                         />
    565                 <TextView android:layout_height="wrap_content"
    566                           android:layout_width="200dip"
    567                           android:textSize="24dip"
    568                           android:text="@string/hebrew_text"
    569                           android:textAlignment="inherit"
    570                           android:layout_marginLeft="7dip"
    571                           android:layout_marginRight="7dip"
    572                           android:background="#444444"
    573                         />
    574             </TableRow>
    575 
    576         </TableLayout>
    577 
    578 </FrameLayout>
    579