1*90c8c64dSAndroid Build Coastguard Worker<?xml version="1.0" encoding="utf-8"?> 2*90c8c64dSAndroid Build Coastguard Worker<!-- 3*90c8c64dSAndroid Build Coastguard Worker/* //device/tests/ComplexLayout/res/layout/complex_layout.xml 4*90c8c64dSAndroid Build Coastguard Worker** 5*90c8c64dSAndroid Build Coastguard Worker** Copyright 2007, The Android Open Source Project 6*90c8c64dSAndroid Build Coastguard Worker** 7*90c8c64dSAndroid Build Coastguard Worker** Licensed under the Apache License, Version 2.0 (the "License"); 8*90c8c64dSAndroid Build Coastguard Worker** you may not use this file except in compliance with the License. 9*90c8c64dSAndroid Build Coastguard Worker** You may obtain a copy of the License at 10*90c8c64dSAndroid Build Coastguard Worker** 11*90c8c64dSAndroid Build Coastguard Worker** http://www.apache.org/licenses/LICENSE-2.0 12*90c8c64dSAndroid Build Coastguard Worker** 13*90c8c64dSAndroid Build Coastguard Worker** Unless required by applicable law or agreed to in writing, software 14*90c8c64dSAndroid Build Coastguard Worker** distributed under the License is distributed on an "AS IS" BASIS, 15*90c8c64dSAndroid Build Coastguard Worker** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16*90c8c64dSAndroid Build Coastguard Worker** See the License for the specific language governing permissions and 17*90c8c64dSAndroid Build Coastguard Worker** limitations under the License. 18*90c8c64dSAndroid Build Coastguard Worker*/ 19*90c8c64dSAndroid Build Coastguard Worker--> 20*90c8c64dSAndroid Build Coastguard Worker 21*90c8c64dSAndroid Build Coastguard Worker<!-- This file describes the layout of the main ComplexLayout activity 22*90c8c64dSAndroid Build Coastguard Worker user interface. 23*90c8c64dSAndroid Build Coastguard Worker --> 24*90c8c64dSAndroid Build Coastguard Worker 25*90c8c64dSAndroid Build Coastguard Worker<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" 26*90c8c64dSAndroid Build Coastguard Worker android:layout_width="match_parent" 27*90c8c64dSAndroid Build Coastguard Worker android:layout_height="match_parent"> 28*90c8c64dSAndroid Build Coastguard Worker 29*90c8c64dSAndroid Build Coastguard Worker<!-- <TabHost 30*90c8c64dSAndroid Build Coastguard Worker android:layout_width="match_parent" 31*90c8c64dSAndroid Build Coastguard Worker android:layout_height="200dip"> 32*90c8c64dSAndroid Build Coastguard Worker </TabHost> 33*90c8c64dSAndroid Build Coastguard Worker 34*90c8c64dSAndroid Build Coastguard Worker <GridView 35*90c8c64dSAndroid Build Coastguard Worker android:layout_width="match_parent" 36*90c8c64dSAndroid Build Coastguard Worker android:layout_height="200dip" 37*90c8c64dSAndroid Build Coastguard Worker android:numColumns="5"> 38*90c8c64dSAndroid Build Coastguard Worker </GridView> --> 39*90c8c64dSAndroid Build Coastguard Worker 40*90c8c64dSAndroid Build Coastguard Worker <LinearLayout 41*90c8c64dSAndroid Build Coastguard Worker android:layout_width="match_parent" 42*90c8c64dSAndroid Build Coastguard Worker android:layout_height="200dip" 43*90c8c64dSAndroid Build Coastguard Worker android:orientation="vertical"> 44*90c8c64dSAndroid Build Coastguard Worker 45*90c8c64dSAndroid Build Coastguard Worker <TextView 46*90c8c64dSAndroid Build Coastguard Worker android:layout_width="match_parent" 47*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content" 48*90c8c64dSAndroid Build Coastguard Worker android:text="@string/header_absolute"/> 49*90c8c64dSAndroid Build Coastguard Worker 50*90c8c64dSAndroid Build Coastguard Worker <AbsoluteLayout 51*90c8c64dSAndroid Build Coastguard Worker android:layout_width="match_parent" 52*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content"> 53*90c8c64dSAndroid Build Coastguard Worker 54*90c8c64dSAndroid Build Coastguard Worker <TextView 55*90c8c64dSAndroid Build Coastguard Worker android:layout_width="match_parent" 56*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content" 57*90c8c64dSAndroid Build Coastguard Worker android:layout_x="0dip" 58*90c8c64dSAndroid Build Coastguard Worker android:layout_y="0dip" 59*90c8c64dSAndroid Build Coastguard Worker android:background="@color/red" 60*90c8c64dSAndroid Build Coastguard Worker android:text="@string/test_short_paragraph"/> 61*90c8c64dSAndroid Build Coastguard Worker 62*90c8c64dSAndroid Build Coastguard Worker <TextView 63*90c8c64dSAndroid Build Coastguard Worker android:layout_width="wrap_content" 64*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content" 65*90c8c64dSAndroid Build Coastguard Worker android:layout_x="0dip" 66*90c8c64dSAndroid Build Coastguard Worker android:layout_y="0dip" 67*90c8c64dSAndroid Build Coastguard Worker android:background="@color/gray0" 68*90c8c64dSAndroid Build Coastguard Worker android:text="@string/test_word"/> 69*90c8c64dSAndroid Build Coastguard Worker <TextView 70*90c8c64dSAndroid Build Coastguard Worker android:layout_width="wrap_content" 71*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content" 72*90c8c64dSAndroid Build Coastguard Worker android:layout_x="8dip" 73*90c8c64dSAndroid Build Coastguard Worker android:layout_y="4dip" 74*90c8c64dSAndroid Build Coastguard Worker android:background="@color/gray1" 75*90c8c64dSAndroid Build Coastguard Worker android:text="@string/test_word"/> 76*90c8c64dSAndroid Build Coastguard Worker <TextView 77*90c8c64dSAndroid Build Coastguard Worker android:layout_width="wrap_content" 78*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content" 79*90c8c64dSAndroid Build Coastguard Worker android:layout_x="16dip" 80*90c8c64dSAndroid Build Coastguard Worker android:layout_y="8dip" 81*90c8c64dSAndroid Build Coastguard Worker android:background="@color/gray2" 82*90c8c64dSAndroid Build Coastguard Worker android:text="@string/test_word"/> 83*90c8c64dSAndroid Build Coastguard Worker <TextView 84*90c8c64dSAndroid Build Coastguard Worker android:layout_width="wrap_content" 85*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content" 86*90c8c64dSAndroid Build Coastguard Worker android:layout_x="24dip" 87*90c8c64dSAndroid Build Coastguard Worker android:layout_y="12dip" 88*90c8c64dSAndroid Build Coastguard Worker android:background="@color/gray3" 89*90c8c64dSAndroid Build Coastguard Worker android:text="@string/test_word"/> 90*90c8c64dSAndroid Build Coastguard Worker <TextView 91*90c8c64dSAndroid Build Coastguard Worker android:layout_width="wrap_content" 92*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content" 93*90c8c64dSAndroid Build Coastguard Worker android:layout_x="32dip" 94*90c8c64dSAndroid Build Coastguard Worker android:layout_y="16dip" 95*90c8c64dSAndroid Build Coastguard Worker android:background="@color/gray4" 96*90c8c64dSAndroid Build Coastguard Worker android:text="@string/test_word"/> 97*90c8c64dSAndroid Build Coastguard Worker <TextView 98*90c8c64dSAndroid Build Coastguard Worker android:layout_width="wrap_content" 99*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content" 100*90c8c64dSAndroid Build Coastguard Worker android:layout_x="40dip" 101*90c8c64dSAndroid Build Coastguard Worker android:layout_y="20dip" 102*90c8c64dSAndroid Build Coastguard Worker android:background="@color/gray5" 103*90c8c64dSAndroid Build Coastguard Worker android:text="@string/test_word"/> 104*90c8c64dSAndroid Build Coastguard Worker <TextView 105*90c8c64dSAndroid Build Coastguard Worker android:layout_width="wrap_content" 106*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content" 107*90c8c64dSAndroid Build Coastguard Worker android:layout_x="48dip" 108*90c8c64dSAndroid Build Coastguard Worker android:layout_y="24dip" 109*90c8c64dSAndroid Build Coastguard Worker android:background="@color/gray6" 110*90c8c64dSAndroid Build Coastguard Worker android:text="@string/test_word"/> 111*90c8c64dSAndroid Build Coastguard Worker <TextView 112*90c8c64dSAndroid Build Coastguard Worker android:layout_width="wrap_content" 113*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content" 114*90c8c64dSAndroid Build Coastguard Worker android:layout_x="56dip" 115*90c8c64dSAndroid Build Coastguard Worker android:layout_y="28dip" 116*90c8c64dSAndroid Build Coastguard Worker android:background="@color/gray7" 117*90c8c64dSAndroid Build Coastguard Worker android:text="@string/test_word"/> 118*90c8c64dSAndroid Build Coastguard Worker <TextView 119*90c8c64dSAndroid Build Coastguard Worker android:layout_width="wrap_content" 120*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content" 121*90c8c64dSAndroid Build Coastguard Worker android:layout_x="64dip" 122*90c8c64dSAndroid Build Coastguard Worker android:layout_y="32dip" 123*90c8c64dSAndroid Build Coastguard Worker android:background="@color/gray8" 124*90c8c64dSAndroid Build Coastguard Worker android:text="@string/test_word"/> 125*90c8c64dSAndroid Build Coastguard Worker <TextView 126*90c8c64dSAndroid Build Coastguard Worker android:layout_width="wrap_content" 127*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content" 128*90c8c64dSAndroid Build Coastguard Worker android:layout_x="72dip" 129*90c8c64dSAndroid Build Coastguard Worker android:layout_y="36dip" 130*90c8c64dSAndroid Build Coastguard Worker android:background="@color/gray9" 131*90c8c64dSAndroid Build Coastguard Worker android:text="@string/test_word"/> 132*90c8c64dSAndroid Build Coastguard Worker <TextView 133*90c8c64dSAndroid Build Coastguard Worker android:layout_width="wrap_content" 134*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content" 135*90c8c64dSAndroid Build Coastguard Worker android:layout_x="80dip" 136*90c8c64dSAndroid Build Coastguard Worker android:layout_y="40dip" 137*90c8c64dSAndroid Build Coastguard Worker android:background="@color/grayA" 138*90c8c64dSAndroid Build Coastguard Worker android:text="@string/test_word"/> 139*90c8c64dSAndroid Build Coastguard Worker <TextView 140*90c8c64dSAndroid Build Coastguard Worker android:layout_width="wrap_content" 141*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content" 142*90c8c64dSAndroid Build Coastguard Worker android:layout_x="88dip" 143*90c8c64dSAndroid Build Coastguard Worker android:layout_y="44dip" 144*90c8c64dSAndroid Build Coastguard Worker android:background="@color/grayB" 145*90c8c64dSAndroid Build Coastguard Worker android:text="@string/test_word"/> 146*90c8c64dSAndroid Build Coastguard Worker <TextView 147*90c8c64dSAndroid Build Coastguard Worker android:layout_width="wrap_content" 148*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content" 149*90c8c64dSAndroid Build Coastguard Worker android:layout_x="96dip" 150*90c8c64dSAndroid Build Coastguard Worker android:layout_y="48dip" 151*90c8c64dSAndroid Build Coastguard Worker android:background="@color/grayC" 152*90c8c64dSAndroid Build Coastguard Worker android:text="@string/test_word"/> 153*90c8c64dSAndroid Build Coastguard Worker <TextView 154*90c8c64dSAndroid Build Coastguard Worker android:layout_width="wrap_content" 155*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content" 156*90c8c64dSAndroid Build Coastguard Worker android:layout_x="104dip" 157*90c8c64dSAndroid Build Coastguard Worker android:layout_y="52dip" 158*90c8c64dSAndroid Build Coastguard Worker android:background="@color/grayD" 159*90c8c64dSAndroid Build Coastguard Worker android:text="@string/test_word"/> 160*90c8c64dSAndroid Build Coastguard Worker <TextView 161*90c8c64dSAndroid Build Coastguard Worker android:layout_width="wrap_content" 162*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content" 163*90c8c64dSAndroid Build Coastguard Worker android:layout_x="112dip" 164*90c8c64dSAndroid Build Coastguard Worker android:layout_y="56dip" 165*90c8c64dSAndroid Build Coastguard Worker android:background="@color/grayE" 166*90c8c64dSAndroid Build Coastguard Worker android:text="@string/test_word"/> 167*90c8c64dSAndroid Build Coastguard Worker <TextView 168*90c8c64dSAndroid Build Coastguard Worker android:layout_width="wrap_content" 169*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content" 170*90c8c64dSAndroid Build Coastguard Worker android:layout_x="120dip" 171*90c8c64dSAndroid Build Coastguard Worker android:layout_y="60dip" 172*90c8c64dSAndroid Build Coastguard Worker android:background="@color/grayF" 173*90c8c64dSAndroid Build Coastguard Worker android:text="@string/test_word"/> 174*90c8c64dSAndroid Build Coastguard Worker 175*90c8c64dSAndroid Build Coastguard Worker </AbsoluteLayout> 176*90c8c64dSAndroid Build Coastguard Worker 177*90c8c64dSAndroid Build Coastguard Worker <TextView 178*90c8c64dSAndroid Build Coastguard Worker android:layout_width="match_parent" 179*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content" 180*90c8c64dSAndroid Build Coastguard Worker android:text="@string/header_relative"/> 181*90c8c64dSAndroid Build Coastguard Worker 182*90c8c64dSAndroid Build Coastguard Worker <RelativeLayout 183*90c8c64dSAndroid Build Coastguard Worker android:layout_width="match_parent" 184*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content"> 185*90c8c64dSAndroid Build Coastguard Worker 186*90c8c64dSAndroid Build Coastguard Worker <Button android:id="@+id/relative_button1" 187*90c8c64dSAndroid Build Coastguard Worker android:layout_width="wrap_content" 188*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content" 189*90c8c64dSAndroid Build Coastguard Worker android:text="@string/relative_button1"/> 190*90c8c64dSAndroid Build Coastguard Worker <Button android:id="@+id/relative_button2" 191*90c8c64dSAndroid Build Coastguard Worker android:layout_width="wrap_content" 192*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content" 193*90c8c64dSAndroid Build Coastguard Worker android:layout_below="@id/relative_button1" 194*90c8c64dSAndroid Build Coastguard Worker android:text="@string/relative_button2"/> 195*90c8c64dSAndroid Build Coastguard Worker <Button android:id="@+id/relative_button3" 196*90c8c64dSAndroid Build Coastguard Worker android:layout_width="wrap_content" 197*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content" 198*90c8c64dSAndroid Build Coastguard Worker android:layout_below="@id/relative_button2" 199*90c8c64dSAndroid Build Coastguard Worker android:text="@string/relative_button3"/> 200*90c8c64dSAndroid Build Coastguard Worker <Button android:id="@+id/relative_button4" 201*90c8c64dSAndroid Build Coastguard Worker android:layout_width="wrap_content" 202*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content" 203*90c8c64dSAndroid Build Coastguard Worker android:layout_below="@id/relative_button3" 204*90c8c64dSAndroid Build Coastguard Worker android:text="@string/relative_button4"/> 205*90c8c64dSAndroid Build Coastguard Worker 206*90c8c64dSAndroid Build Coastguard Worker <TextView android:id="@+id/relative_text" 207*90c8c64dSAndroid Build Coastguard Worker android:layout_width="wrap_content" 208*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content" 209*90c8c64dSAndroid Build Coastguard Worker android:layout_toRightOf="@id/relative_button1" 210*90c8c64dSAndroid Build Coastguard Worker android:background="@color/green" 211*90c8c64dSAndroid Build Coastguard Worker android:text="@string/test_short_paragraph"/> 212*90c8c64dSAndroid Build Coastguard Worker 213*90c8c64dSAndroid Build Coastguard Worker <Button android:id="@+id/relative_button5" 214*90c8c64dSAndroid Build Coastguard Worker android:layout_width="wrap_content" 215*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content" 216*90c8c64dSAndroid Build Coastguard Worker android:layout_below="@id/relative_text" 217*90c8c64dSAndroid Build Coastguard Worker android:layout_alignParentRight="true" 218*90c8c64dSAndroid Build Coastguard Worker android:text="@string/relative_button5"/> 219*90c8c64dSAndroid Build Coastguard Worker <Button android:id="@+id/relative_button6" 220*90c8c64dSAndroid Build Coastguard Worker android:layout_width="wrap_content" 221*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content" 222*90c8c64dSAndroid Build Coastguard Worker android:layout_below="@id/relative_text" 223*90c8c64dSAndroid Build Coastguard Worker android:layout_toLeftOf="@id/relative_button5" 224*90c8c64dSAndroid Build Coastguard Worker android:text="@string/relative_button6"/> 225*90c8c64dSAndroid Build Coastguard Worker <Button android:id="@+id/relative_button7" 226*90c8c64dSAndroid Build Coastguard Worker android:layout_width="wrap_content" 227*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content" 228*90c8c64dSAndroid Build Coastguard Worker android:layout_below="@id/relative_text" 229*90c8c64dSAndroid Build Coastguard Worker android:layout_toLeftOf="@id/relative_button6" 230*90c8c64dSAndroid Build Coastguard Worker android:text="@string/relative_button7"/> 231*90c8c64dSAndroid Build Coastguard Worker <Button android:id="@+id/relative_button8" 232*90c8c64dSAndroid Build Coastguard Worker android:layout_width="wrap_content" 233*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content" 234*90c8c64dSAndroid Build Coastguard Worker android:layout_below="@id/relative_text" 235*90c8c64dSAndroid Build Coastguard Worker android:layout_toLeftOf="@id/relative_button7" 236*90c8c64dSAndroid Build Coastguard Worker android:text="@string/relative_button8"/> 237*90c8c64dSAndroid Build Coastguard Worker 238*90c8c64dSAndroid Build Coastguard Worker </RelativeLayout> 239*90c8c64dSAndroid Build Coastguard Worker 240*90c8c64dSAndroid Build Coastguard Worker <TextView 241*90c8c64dSAndroid Build Coastguard Worker android:layout_width="match_parent" 242*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content" 243*90c8c64dSAndroid Build Coastguard Worker android:text="@string/header_linear"/> 244*90c8c64dSAndroid Build Coastguard Worker 245*90c8c64dSAndroid Build Coastguard Worker <LinearLayout 246*90c8c64dSAndroid Build Coastguard Worker android:layout_width="match_parent" 247*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content" 248*90c8c64dSAndroid Build Coastguard Worker android:orientation="vertical"> 249*90c8c64dSAndroid Build Coastguard Worker 250*90c8c64dSAndroid Build Coastguard Worker <LinearLayout 251*90c8c64dSAndroid Build Coastguard Worker android:layout_width="match_parent" 252*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content" 253*90c8c64dSAndroid Build Coastguard Worker android:orientation="horizontal"> 254*90c8c64dSAndroid Build Coastguard Worker 255*90c8c64dSAndroid Build Coastguard Worker <Button 256*90c8c64dSAndroid Build Coastguard Worker android:layout_width="wrap_content" 257*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content" 258*90c8c64dSAndroid Build Coastguard Worker android:text="@string/relative_button1"/> 259*90c8c64dSAndroid Build Coastguard Worker <Button 260*90c8c64dSAndroid Build Coastguard Worker android:layout_width="wrap_content" 261*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content" 262*90c8c64dSAndroid Build Coastguard Worker android:text="@string/relative_button2"/> 263*90c8c64dSAndroid Build Coastguard Worker <Button 264*90c8c64dSAndroid Build Coastguard Worker android:layout_width="wrap_content" 265*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content" 266*90c8c64dSAndroid Build Coastguard Worker android:text="@string/relative_button3"/> 267*90c8c64dSAndroid Build Coastguard Worker <Button 268*90c8c64dSAndroid Build Coastguard Worker android:layout_width="wrap_content" 269*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content" 270*90c8c64dSAndroid Build Coastguard Worker android:text="@string/relative_button4"/> 271*90c8c64dSAndroid Build Coastguard Worker 272*90c8c64dSAndroid Build Coastguard Worker </LinearLayout> 273*90c8c64dSAndroid Build Coastguard Worker 274*90c8c64dSAndroid Build Coastguard Worker <EditText 275*90c8c64dSAndroid Build Coastguard Worker android:layout_width="match_parent" 276*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content"/> 277*90c8c64dSAndroid Build Coastguard Worker 278*90c8c64dSAndroid Build Coastguard Worker <TextView 279*90c8c64dSAndroid Build Coastguard Worker android:layout_width="match_parent" 280*90c8c64dSAndroid Build Coastguard Worker android:layout_height="wrap_content" 281*90c8c64dSAndroid Build Coastguard Worker android:background="@color/blue" 282*90c8c64dSAndroid Build Coastguard Worker android:text="@string/test_long_paragraph"/> 283*90c8c64dSAndroid Build Coastguard Worker 284*90c8c64dSAndroid Build Coastguard Worker </LinearLayout> 285*90c8c64dSAndroid Build Coastguard Worker 286*90c8c64dSAndroid Build Coastguard Worker </LinearLayout> 287*90c8c64dSAndroid Build Coastguard Worker 288*90c8c64dSAndroid Build Coastguard Worker</ScrollView> 289