1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 /* 4 ** 5 ** Copyright 2007, The Android Open Source Project 6 ** 7 ** Licensed under the Apache License, Version 2.0 (the "License"); 8 ** you may not use this file except in compliance with the License. 9 ** You may obtain a copy of the License at 10 ** 11 ** http://www.apache.org/licenses/LICENSE-2.0 12 ** 13 ** Unless required by applicable law or agreed to in writing, software 14 ** distributed under the License is distributed on an "AS IS" BASIS, 15 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 ** See the License for the specific language governing permissions and 17 ** limitations under the License. 18 */ 19 --> 20 21 <TableLayout xmlns:android="http://schemas.android.com/apk/res/android" 22 android:layout_width="match_parent" 23 android:layout_height="wrap_content" 24 android:stretchColumns="1"> 25 26 <TableRow> 27 <TextView android:id="@+id/reference" 28 android:layout_column="1" 29 android:background="#FF0000FF" 30 android:text="@string/table_layout_open" 31 android:padding="3dip" /> 32 <TextView 33 android:text="@string/table_layout_open_shortcut" 34 android:gravity="right" 35 android:padding="3dip" /> 36 </TableRow> 37 38 <TableRow> 39 <!-- Horizontally centers the content of the cell --> 40 <TextView android:id="@+id/center" 41 android:layout_column="1" 42 android:text="@string/table_layout_save_as" 43 android:background="#FFFF0000" 44 android:layout_gravity="center_horizontal" 45 android:padding="3dip" /> 46 <TextView 47 android:text="@string/table_layout_save_as_shortcut" 48 android:background="#FFFF00FF" 49 android:gravity="right" 50 android:padding="3dip" /> 51 </TableRow> 52 53 <TableRow> 54 <View 55 android:layout_height="24dip" 56 android:background="#FF909090" /> 57 <!-- Aligns the content of the cell to the bottom right --> 58 <TextView android:id="@+id/bottomRight" 59 android:text="@string/table_layout_export" 60 android:background="#FFFF0000" 61 android:layout_gravity="right|bottom" 62 android:padding="3dip" /> 63 <TextView 64 android:text="@string/table_layout_export_shortcut" 65 android:background="#FF00FFFF" 66 android:gravity="right" 67 android:padding="3dip" /> 68 </TableRow> 69 70 71 <TableRow> 72 <TextView android:id="@+id/left" 73 android:layout_column="1" 74 android:background="#FF0000FF" 75 android:text="@string/table_layout_open" 76 android:padding="3dip" /> 77 <TextView 78 android:text="@string/table_layout_open_shortcut" 79 android:gravity="right" 80 android:padding="3dip" /> 81 </TableRow> 82 </TableLayout> 83