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 21 <TableRow> 22 <TextView 23 android:text="@string/table_layout_12_a" 24 android:background="#FFFF0000" 25 android:padding="3dip" /> 26 <TextView 27 android:text="@string/table_layout_12_b" 28 android:background="#FF00FF00" 29 android:padding="3dip" /> 30 <TextView 31 android:text="@string/table_layout_12_c" 32 android:background="#FF0000FF" 33 android:padding="3dip" /> 34 </TableRow> 35 36 <TableRow> 37 <TextView 38 android:text="@string/table_layout_12_d" 39 android:layout_span="2" 40 android:gravity="center_horizontal" 41 android:background="#FF0000FF" 42 android:padding="3dip" /> 43 <TextView 44 android:text="@string/table_layout_12_e" 45 android:background="#FF00FF00" 46 android:padding="3dip" /> 47 </TableRow> 48 49 <TableRow> 50 <TextView 51 android:text="@string/table_layout_12_f" 52 android:background="#FFFF00FF" 53 android:padding="3dip" /> 54 <TextView 55 android:text="@string/table_layout_12_g" 56 android:background="#FF00FF00" 57 android:padding="3dip" /> 58 <TextView 59 android:text="@string/table_layout_12_h" 60 android:background="#FFFF0000" 61 android:padding="3dip" /> 62 </TableRow> 63 64 <TableRow> 65 <TextView 66 android:text="@string/table_layout_12_a" 67 android:background="#FF00FF00" 68 android:padding="3dip" /> 69 <TextView 70 android:text="@string/table_layout_12_b" 71 android:layout_span="2" 72 android:gravity="center_horizontal" 73 android:background="#FF0000FF" 74 android:padding="3dip" /> 75 </TableRow> 76 77 <TableRow> 78 <TextView 79 android:text="@string/table_layout_12_g" 80 android:layout_span="3" 81 android:gravity="center_horizontal" 82 android:background="#FFC0C0C0" 83 android:padding="3dip" /> 84 </TableRow> 85 </TableLayout> 86