table_layout_vertical_gravity.xml revision 1d3165f10b12165f02b7015ac1a817c5f60e6399
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 25 <TableRow> 26 <View android:id="@+id/reference1" 27 android:layout_height="96dip" 28 android:background="#FF909090" /> 29 <TextView 30 android:background="#FF0000FF" 31 android:text="@string/table_layout_open" 32 android:padding="3dip" /> 33 <TextView android:id="@+id/cell_top" 34 android:background="#FF00FF00" 35 android:layout_gravity="top" 36 android:text="@string/table_layout_open_shortcut" 37 android:padding="3dip" /> 38 </TableRow> 39 40 <TableRow> 41 <View android:id="@+id/reference2" 42 android:layout_height="96dip" 43 android:background="#FF909090" /> 44 <TextView 45 android:background="#FF0000FF" 46 android:text="@string/table_layout_open" 47 android:padding="3dip" /> 48 <TextView android:id="@+id/cell_center" 49 android:background="#FF00FF00" 50 android:layout_gravity="center_vertical" 51 android:text="@string/table_layout_open_shortcut" 52 android:padding="3dip" /> 53 </TableRow> 54 55 <TableRow> 56 <View android:id="@+id/reference3" 57 android:layout_height="96dip" 58 android:background="#FF909090" /> 59 <TextView 60 android:background="#FF0000FF" 61 android:text="@string/table_layout_open" 62 android:padding="3dip" /> 63 <TextView android:id="@+id/cell_bottom" 64 android:background="#FF00FF00" 65 android:layout_gravity="bottom" 66 android:text="@string/table_layout_open_shortcut" 67 android:padding="3dip" /> 68 </TableRow> 69 70</TableLayout> 71