Fabrice Di Meglio | 88f9fd2 | 2011-06-02 10:55:58 -0700 | [diff] [blame] | 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 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 18 | android:id="@+id/linear_layout_ltr" |
| 19 | android:orientation="vertical" |
| 20 | android:layout_width="match_parent" |
| 21 | android:layout_height="match_parent" |
| 22 | android:horizontalDirection="ltr"> |
| 23 | |
| 24 | <TableLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 25 | android:layout_width="wrap_content" |
| 26 | android:layout_height="wrap_content" |
| 27 | android:stretchColumns="1,2"> |
| 28 | |
| 29 | <TableRow> |
| 30 | <Button android:layout_height="wrap_content" |
| 31 | android:layout_width="wrap_content" |
| 32 | android:text="@string/button1_text" |
| 33 | android:textSize="24dip" |
| 34 | /> |
| 35 | <Button android:layout_height="wrap_content" |
| 36 | android:layout_width="wrap_content" |
Fabrice Di Meglio | 2f9cad2 | 2011-06-02 16:35:21 -0700 | [diff] [blame^] | 37 | android:text="@string/button_right_text" |
Fabrice Di Meglio | 88f9fd2 | 2011-06-02 10:55:58 -0700 | [diff] [blame] | 38 | android:textSize="24dip" |
| 39 | android:gravity="right" |
| 40 | /> |
| 41 | <Button android:layout_height="wrap_content" |
| 42 | android:layout_width="wrap_content" |
Fabrice Di Meglio | 2f9cad2 | 2011-06-02 16:35:21 -0700 | [diff] [blame^] | 43 | android:text="@string/button_after_text" |
Fabrice Di Meglio | 88f9fd2 | 2011-06-02 10:55:58 -0700 | [diff] [blame] | 44 | android:textSize="24dip" |
| 45 | android:gravity="after" |
| 46 | /> |
| 47 | </TableRow> |
| 48 | |
| 49 | <TableRow> |
| 50 | <Button android:layout_height="wrap_content" |
| 51 | android:layout_width="wrap_content" |
Fabrice Di Meglio | 2f9cad2 | 2011-06-02 16:35:21 -0700 | [diff] [blame^] | 52 | android:text="@string/button2_text" |
Fabrice Di Meglio | 88f9fd2 | 2011-06-02 10:55:58 -0700 | [diff] [blame] | 53 | android:textSize="24dip" |
| 54 | /> |
| 55 | <Button android:layout_height="wrap_content" |
| 56 | android:layout_width="wrap_content" |
Fabrice Di Meglio | 2f9cad2 | 2011-06-02 16:35:21 -0700 | [diff] [blame^] | 57 | android:text="@string/button_left_text" |
Fabrice Di Meglio | 88f9fd2 | 2011-06-02 10:55:58 -0700 | [diff] [blame] | 58 | android:textSize="24dip" |
| 59 | android:gravity="left" |
| 60 | /> |
| 61 | <Button android:layout_height="wrap_content" |
| 62 | android:layout_width="wrap_content" |
Fabrice Di Meglio | 2f9cad2 | 2011-06-02 16:35:21 -0700 | [diff] [blame^] | 63 | android:text="@string/button_before_text" |
Fabrice Di Meglio | 88f9fd2 | 2011-06-02 10:55:58 -0700 | [diff] [blame] | 64 | android:textSize="24dip" |
| 65 | android:gravity="before" |
| 66 | /> |
| 67 | </TableRow> |
| 68 | |
| 69 | </TableLayout> |
| 70 | |
| 71 | <TableLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 72 | android:layout_width="wrap_content" |
| 73 | android:layout_height="wrap_content" |
| 74 | android:stretchColumns="1,2" |
| 75 | android:horizontalDirection="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" |
Fabrice Di Meglio | 2f9cad2 | 2011-06-02 16:35:21 -0700 | [diff] [blame^] | 85 | android:text="@string/button_right_text" |
Fabrice Di Meglio | 88f9fd2 | 2011-06-02 10:55:58 -0700 | [diff] [blame] | 86 | android:textSize="24dip" |
| 87 | android:gravity="right" |
| 88 | /> |
| 89 | <Button android:layout_height="wrap_content" |
| 90 | android:layout_width="wrap_content" |
Fabrice Di Meglio | 2f9cad2 | 2011-06-02 16:35:21 -0700 | [diff] [blame^] | 91 | android:text="@string/button_after_text" |
Fabrice Di Meglio | 88f9fd2 | 2011-06-02 10:55:58 -0700 | [diff] [blame] | 92 | android:textSize="24dip" |
| 93 | android:gravity="after" |
| 94 | /> |
| 95 | </TableRow> |
| 96 | |
| 97 | <TableRow> |
| 98 | <Button android:layout_height="wrap_content" |
| 99 | android:layout_width="wrap_content" |
Fabrice Di Meglio | 2f9cad2 | 2011-06-02 16:35:21 -0700 | [diff] [blame^] | 100 | android:text="@string/button2_text" |
Fabrice Di Meglio | 88f9fd2 | 2011-06-02 10:55:58 -0700 | [diff] [blame] | 101 | android:textSize="24dip" |
| 102 | /> |
| 103 | <Button android:layout_height="wrap_content" |
| 104 | android:layout_width="wrap_content" |
Fabrice Di Meglio | 2f9cad2 | 2011-06-02 16:35:21 -0700 | [diff] [blame^] | 105 | android:text="@string/button_left_text" |
Fabrice Di Meglio | 88f9fd2 | 2011-06-02 10:55:58 -0700 | [diff] [blame] | 106 | android:textSize="24dip" |
| 107 | android:gravity="left" |
| 108 | /> |
| 109 | <Button android:layout_height="wrap_content" |
| 110 | android:layout_width="wrap_content" |
Fabrice Di Meglio | 2f9cad2 | 2011-06-02 16:35:21 -0700 | [diff] [blame^] | 111 | android:text="@string/button_before_text" |
Fabrice Di Meglio | 88f9fd2 | 2011-06-02 10:55:58 -0700 | [diff] [blame] | 112 | android:textSize="24dip" |
| 113 | android:gravity="before" |
| 114 | /> |
| 115 | </TableRow> |
| 116 | |
| 117 | </TableLayout> |
| 118 | |
| 119 | <TableLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 120 | android:layout_width="wrap_content" |
| 121 | android:layout_height="wrap_content" |
| 122 | android:stretchColumns="1,2" |
| 123 | android:horizontalDirection="ltr"> |
| 124 | |
| 125 | <TableRow> |
| 126 | <Button android:layout_height="wrap_content" |
| 127 | android:layout_width="wrap_content" |
| 128 | android:text="@string/button1_text" |
| 129 | android:textSize="24dip" |
| 130 | /> |
| 131 | <Button android:layout_height="wrap_content" |
| 132 | android:layout_width="wrap_content" |
Fabrice Di Meglio | 2f9cad2 | 2011-06-02 16:35:21 -0700 | [diff] [blame^] | 133 | android:text="@string/button_right_text" |
Fabrice Di Meglio | 88f9fd2 | 2011-06-02 10:55:58 -0700 | [diff] [blame] | 134 | android:textSize="24dip" |
| 135 | android:gravity="right" |
| 136 | /> |
| 137 | <Button android:layout_height="wrap_content" |
| 138 | android:layout_width="wrap_content" |
Fabrice Di Meglio | 2f9cad2 | 2011-06-02 16:35:21 -0700 | [diff] [blame^] | 139 | android:text="@string/button_after_text" |
Fabrice Di Meglio | 88f9fd2 | 2011-06-02 10:55:58 -0700 | [diff] [blame] | 140 | android:textSize="24dip" |
| 141 | android:gravity="after" |
| 142 | /> |
| 143 | </TableRow> |
| 144 | |
| 145 | <TableRow> |
| 146 | <Button android:layout_height="wrap_content" |
| 147 | android:layout_width="wrap_content" |
Fabrice Di Meglio | 2f9cad2 | 2011-06-02 16:35:21 -0700 | [diff] [blame^] | 148 | android:text="@string/button2_text" |
Fabrice Di Meglio | 88f9fd2 | 2011-06-02 10:55:58 -0700 | [diff] [blame] | 149 | android:textSize="24dip" |
| 150 | /> |
| 151 | <Button android:layout_height="wrap_content" |
| 152 | android:layout_width="wrap_content" |
Fabrice Di Meglio | 2f9cad2 | 2011-06-02 16:35:21 -0700 | [diff] [blame^] | 153 | android:text="@string/button_left_text" |
Fabrice Di Meglio | 88f9fd2 | 2011-06-02 10:55:58 -0700 | [diff] [blame] | 154 | android:textSize="24dip" |
| 155 | android:gravity="left" |
| 156 | /> |
| 157 | <Button android:layout_height="wrap_content" |
| 158 | android:layout_width="wrap_content" |
Fabrice Di Meglio | 2f9cad2 | 2011-06-02 16:35:21 -0700 | [diff] [blame^] | 159 | android:text="@string/button_before_text" |
Fabrice Di Meglio | 88f9fd2 | 2011-06-02 10:55:58 -0700 | [diff] [blame] | 160 | android:textSize="24dip" |
| 161 | android:gravity="before" |
| 162 | /> |
| 163 | </TableRow> |
| 164 | |
| 165 | </TableLayout> |
| 166 | |
| 167 | <TableLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 168 | android:layout_width="wrap_content" |
| 169 | android:layout_height="wrap_content" |
| 170 | android:stretchColumns="1,2" |
| 171 | android:horizontalDirection="rtl"> |
| 172 | |
| 173 | <TableRow> |
| 174 | <Button android:layout_height="wrap_content" |
| 175 | android:layout_width="wrap_content" |
| 176 | android:text="@string/button1_text" |
| 177 | android:textSize="24dip" |
| 178 | /> |
| 179 | <Button android:layout_height="wrap_content" |
| 180 | android:layout_width="wrap_content" |
Fabrice Di Meglio | 2f9cad2 | 2011-06-02 16:35:21 -0700 | [diff] [blame^] | 181 | android:text="@string/button_right_text" |
Fabrice Di Meglio | 88f9fd2 | 2011-06-02 10:55:58 -0700 | [diff] [blame] | 182 | android:textSize="24dip" |
| 183 | android:gravity="right" |
| 184 | /> |
| 185 | <Button android:layout_height="wrap_content" |
| 186 | android:layout_width="wrap_content" |
Fabrice Di Meglio | 2f9cad2 | 2011-06-02 16:35:21 -0700 | [diff] [blame^] | 187 | android:text="@string/button_after_text" |
Fabrice Di Meglio | 88f9fd2 | 2011-06-02 10:55:58 -0700 | [diff] [blame] | 188 | android:textSize="24dip" |
| 189 | android:gravity="after" |
| 190 | /> |
| 191 | </TableRow> |
| 192 | |
| 193 | <TableRow> |
| 194 | <Button android:layout_height="wrap_content" |
| 195 | android:layout_width="wrap_content" |
Fabrice Di Meglio | 2f9cad2 | 2011-06-02 16:35:21 -0700 | [diff] [blame^] | 196 | android:text="@string/button2_text" |
Fabrice Di Meglio | 88f9fd2 | 2011-06-02 10:55:58 -0700 | [diff] [blame] | 197 | android:textSize="24dip" |
| 198 | /> |
| 199 | <Button android:layout_height="wrap_content" |
| 200 | android:layout_width="wrap_content" |
Fabrice Di Meglio | 2f9cad2 | 2011-06-02 16:35:21 -0700 | [diff] [blame^] | 201 | android:text="@string/button_left_text" |
Fabrice Di Meglio | 88f9fd2 | 2011-06-02 10:55:58 -0700 | [diff] [blame] | 202 | android:textSize="24dip" |
| 203 | android:gravity="left" |
| 204 | /> |
| 205 | <Button android:layout_height="wrap_content" |
| 206 | android:layout_width="wrap_content" |
Fabrice Di Meglio | 2f9cad2 | 2011-06-02 16:35:21 -0700 | [diff] [blame^] | 207 | android:text="@string/button_before_text" |
Fabrice Di Meglio | 88f9fd2 | 2011-06-02 10:55:58 -0700 | [diff] [blame] | 208 | android:textSize="24dip" |
| 209 | android:gravity="before" |
| 210 | /> |
| 211 | </TableRow> |
| 212 | |
| 213 | </TableLayout> |
| 214 | |
| 215 | </LinearLayout> |