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/relative_layout_2_rtl"
     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="rtl">
     26 
     27         <RelativeLayout android:layout_width="fill_parent"
     28                         android:layout_height="wrap_content"
     29                         android:background="#FF000000"
     30                         android:padding="10px">
     31 
     32             <TextView android:id="@+id/label_1"
     33                       android:layout_width="fill_parent"
     34                       android:layout_height="wrap_content"
     35                       android:text="Type here:"/>
     36 
     37             <EditText android:id="@+id/entry_1"
     38                       android:layout_width="fill_parent"
     39                       android:layout_height="wrap_content"
     40                       android:layout_below="@id/label_1"/>
     41 
     42             <Button android:id="@+id/ok_1"
     43                     android:layout_width="wrap_content"
     44                     android:layout_height="wrap_content"
     45                     android:layout_below="@id/entry_1"
     46                     android:layout_alignParentRight="true"
     47                     android:layout_marginLeft="10px"
     48                     android:text="OK"/>
     49 
     50             <Button android:layout_width="wrap_content"
     51                     android:layout_height="wrap_content"
     52                     android:layout_toLeftOf="@id/ok_1"
     53                     android:layout_alignTop="@id/ok_1"
     54                     android:text="Cancel"/>
     55         </RelativeLayout>
     56 
     57         <RelativeLayout android:layout_width="fill_parent"
     58                         android:layout_height="wrap_content"
     59                         android:background="#FF000000"
     60                         android:padding="10px"
     61                         android:layoutDirection="ltr">
     62 
     63             <TextView android:id="@+id/label_2"
     64                       android:layout_width="fill_parent"
     65                       android:layout_height="wrap_content"
     66                       android:text="Type here:"/>
     67 
     68             <EditText android:id="@+id/entry_2"
     69                       android:layout_width="fill_parent"
     70                       android:layout_height="wrap_content"
     71                       android:layout_below="@id/label_2"/>
     72 
     73             <Button android:id="@+id/ok_2"
     74                     android:layout_width="wrap_content"
     75                     android:layout_height="wrap_content"
     76                     android:layout_below="@id/entry_2"
     77                     android:layout_alignParentRight="true"
     78                     android:layout_marginLeft="10px"
     79                     android:text="OK"/>
     80 
     81             <Button android:layout_width="wrap_content"
     82                     android:layout_height="wrap_content"
     83                     android:layout_toLeftOf="@id/ok_2"
     84                     android:layout_alignTop="@id/ok_2"
     85                     android:text="Cancel"/>
     86         </RelativeLayout>
     87 
     88         <RelativeLayout android:layout_width="fill_parent"
     89                         android:layout_height="wrap_content"
     90                         android:background="#FF000000"
     91                         android:padding="10px"
     92                         android:layoutDirection="inherit">
     93     
     94             <TextView android:id="@+id/label_3"
     95                       android:layout_width="fill_parent"
     96                       android:layout_height="wrap_content"
     97                       android:text="Type here:"/>
     98     
     99             <EditText android:id="@+id/entry_3"
    100                       android:layout_width="fill_parent"
    101                       android:layout_height="wrap_content"
    102                       android:layout_below="@id/label_3"/>
    103     
    104             <Button android:id="@+id/ok_3"
    105                     android:layout_width="wrap_content"
    106                     android:layout_height="wrap_content"
    107                     android:layout_below="@id/entry_3"
    108                     android:layout_alignParentRight="true"
    109                     android:layout_marginLeft="10px"
    110                     android:text="OK"/>
    111     
    112             <Button android:layout_width="wrap_content"
    113                     android:layout_height="wrap_content"
    114                     android:layout_toLeftOf="@id/ok_3"
    115                     android:layout_alignTop="@id/ok_3"
    116                     android:text="Cancel"/>
    117         </RelativeLayout>
    118 
    119         <RelativeLayout android:layout_width="fill_parent"
    120                         android:layout_height="wrap_content"
    121                         android:background="#FF000000"
    122                         android:padding="10px"
    123                         android:layoutDirection="rtl">
    124 
    125             <TextView android:id="@+id/label_4"
    126                       android:layout_width="fill_parent"
    127                       android:layout_height="wrap_content"
    128                       android:text="Type here:"/>
    129 
    130             <EditText android:id="@+id/entry_4"
    131                       android:layout_width="fill_parent"
    132                       android:layout_height="wrap_content"
    133                       android:layout_below="@id/label_4"/>
    134 
    135             <Button android:id="@+id/ok_4"
    136                     android:layout_width="wrap_content"
    137                     android:layout_height="wrap_content"
    138                     android:layout_below="@id/entry_4"
    139                     android:layout_alignParentRight="true"
    140                     android:layout_marginLeft="10px"
    141                     android:text="OK"/>
    142 
    143             <Button android:layout_width="wrap_content"
    144                     android:layout_height="wrap_content"
    145                     android:layout_toLeftOf="@id/ok_4"
    146                     android:layout_alignTop="@id/ok_4"
    147                     android:text="Cancel"/>
    148         </RelativeLayout>
    149 
    150         <RelativeLayout android:layout_width="fill_parent"
    151                         android:layout_height="wrap_content"
    152                         android:background="#FF000000"
    153                         android:padding="10px"
    154                         android:layoutDirection="locale">
    155     
    156             <TextView android:id="@+id/label_4"
    157                       android:layout_width="fill_parent"
    158                       android:layout_height="wrap_content"
    159                       android:text="Type here:"/>
    160     
    161             <EditText android:id="@+id/entry_4"
    162                       android:layout_width="fill_parent"
    163                       android:layout_height="wrap_content"
    164                       android:layout_below="@id/label_4"/>
    165 
    166             <Button android:id="@+id/ok_4"
    167                     android:layout_width="wrap_content"
    168                     android:layout_height="wrap_content"
    169                     android:layout_below="@id/entry_4"
    170                     android:layout_alignParentRight="true"
    171                     android:layout_marginLeft="10px"
    172                     android:text="OK"/>
    173     
    174             <Button android:layout_width="wrap_content"
    175                     android:layout_height="wrap_content"
    176                     android:layout_toLeftOf="@id/ok_4"
    177                     android:layout_alignTop="@id/ok_4"
    178                     android:text="Cancel"/>
    179         </RelativeLayout>
    180 
    181     </LinearLayout>
    182 
    183 </FrameLayout>