1<?xml version="1.0" encoding="utf-8"?>
2<!--
3/* //device/tests/SimpleLayout/res/layout/simple_layout.xml
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<!-- This file describes the layout of the main SimpleLayout activity
22     user interface.
23 -->
24
25<!-- The top view is a layout manager that places its child views into
26     a row, here set to be vertical (so the first is at the top) -->
27
28<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
29    android:layout_width="match_parent"
30    android:layout_height="match_parent"
31    android:orientation="vertical">
32
33    <RelativeLayout
34        android:layout_width="match_parent"
35        android:layout_height="match_parent">
36
37
38        <RelativeLayout android:id="@+id/replay_pane"
39            android:layout_width="match_parent"
40            android:layout_height="wrap_content"
41            android:layout_alignParentBottom="True"
42            android:background="@color/replay_background">
43
44            <TextView android:id="@+id/instructions"
45                android:layout_width="match_parent"
46                android:layout_height="wrap_content"
47                android:text="@string/response" />
48
49            <EditText android:id="@+id/entry"
50                android:layout_width="match_parent"
51                android:layout_height="44dip"
52                android:layout_below="@id/instructions"/>
53
54            <Button android:id="@+id/ok"
55                android:layout_width="wrap_content"
56                android:layout_height="wrap_content"
57                android:layout_below="@id/entry"
58                android:layout_alignParentRight="true"
59                android:text="@string/ok" />
60
61            <Button android:id="@+id/cancel"
62                android:layout_width="wrap_content"
63                android:layout_height="wrap_content"
64                android:layout_toLeftOf="@id/ok"
65                android:layout_alignTop="@id/ok"
66                android:text="@string/cancel" />
67
68        </RelativeLayout>
69
70        <ScrollView android:id="@+id/scroll_pane"
71            android:layout_width="match_parent"
72            android:layout_height="match_parent"
73            android:layout_above="@id/replay_pane">
74
75            <TextView android:id="@+id/text_field"
76                android:layout_width="match_parent"
77                android:layout_height="match_parent"
78                android:text="@string/text"/>
79
80            <requestFocus/>
81
82        </ScrollView>
83
84    </RelativeLayout>
85
86</LinearLayout>
87