1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2007 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<TableLayout xmlns:android="http://schemas.android.com/apk/res/android" 18 android:layout_width="match_parent" 19 android:layout_height="wrap_content" 20 android:stretchColumns="1"> 21 22 <TableRow> 23 <TextView 24 android:layout_column="1" 25 android:text="@string/table_layout_7_open" 26 android:padding="3dip" /> 27 <TextView 28 android:text="@string/table_layout_7_open_shortcut" 29 android:gravity="right" 30 android:padding="3dip" /> 31 </TableRow> 32 33 <TableRow> 34 <TextView 35 android:layout_column="1" 36 android:text="@string/table_layout_7_save" 37 android:background="#FF00FF00" 38 android:padding="3dip" /> 39 <TextView 40 android:text="@string/table_layout_7_save_shortcut" 41 android:gravity="right" 42 android:padding="3dip" /> 43 </TableRow> 44 45 <TableRow> 46 <!-- Horizontally centers the content of the cell --> 47 <TextView 48 android:layout_column="1" 49 android:text="@string/table_layout_7_save_as" 50 android:background="#FFFF0000" 51 android:layout_gravity="center_horizontal" 52 android:padding="3dip" /> 53 <TextView 54 android:text="@string/table_layout_7_save_as_shortcut" 55 android:background="#FFFF00FF" 56 android:gravity="right" 57 android:padding="3dip" /> 58 </TableRow> 59 60 <View 61 android:layout_height="2dip" 62 android:background="#FF909090" /> 63 64 <TableRow> 65 <TextView 66 android:text="@string/table_layout_7_x" 67 android:padding="3dip" /> 68 <TextView 69 android:text="@string/table_layout_7_import" 70 android:padding="3dip" /> 71 </TableRow> 72 73 <TableRow> 74 <View 75 android:layout_height="68dip" 76 android:background="#FF909090" /> 77 <!-- Aligns the content of the cell to the bottom right --> 78 <TextView 79 android:text="@string/table_layout_7_export" 80 android:background="#FFFF0000" 81 android:layout_gravity="right|bottom" 82 android:padding="3dip" /> 83 <TextView 84 android:text="@string/table_layout_7_export_shortcut" 85 android:background="#FF00FFFF" 86 android:gravity="right" 87 android:padding="3dip" /> 88 </TableRow> 89 90 <View 91 android:layout_height="2dip" 92 android:background="#FF909090" /> 93</TableLayout> 94