1<?xml version="1.0" encoding="utf-8"?>
2<!--
3/*
4 * Copyright (C) 2012 The Android Open Source Project
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
7 * use this file except in compliance with the License. You may obtain a copy of
8 * the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
15 * License for the specific language governing permissions and limitations under
16 * the License.
17 */
18-->
19
20<ScrollView
21    xmlns:android="http://schemas.android.com/apk/res/android"
22    xmlns:tools="http://schemas.android.com/tools"
23    android:layout_width="fill_parent"
24    android:layout_height="wrap_content"
25    >
26
27    <RelativeLayout
28        android:layout_width="fill_parent"
29        android:layout_height="wrap_content"
30        android:padding="8dp" >
31
32        <ToggleButton
33            android:id="@+id/toggleService"
34            android:layout_width="wrap_content"
35            android:layout_height="wrap_content"
36            android:layout_alignParentRight="true"
37            />
38
39        <TextView
40            android:id="@+id/labelService"
41            android:layout_width="wrap_content"
42            android:layout_height="wrap_content"
43            android:layout_alignBaseline="@+id/toggleService"
44            android:layout_alignParentLeft="true"
45            android:layout_marginTop="20dp"
46            android:text="@string/main_label_service"
47            android:textAppearance="?android:attr/textAppearanceLarge" />
48
49        <!-- Placeholder status text. Becomes visibility=gone when empty. -->
50        <TextView
51            android:id="@+id/textStatus"
52            android:layout_width="wrap_content"
53            android:layout_height="wrap_content"
54            android:layout_alignBaseline="@+id/labelService"
55            android:layout_marginLeft="8dp"
56            android:layout_toRightOf="@+id/labelService"
57            android:text="[status]"
58            android:textAppearance="?android:attr/textAppearanceLarge"
59            tools:ignore="HardcodedText" />
60
61        <!-- Placeholder error text. Becomes visibility=gone when empty. -->
62        <TextView
63            android:id="@+id/textError"
64            android:layout_width="wrap_content"
65            android:layout_height="wrap_content"
66            android:layout_alignParentLeft="true"
67            android:layout_alignParentRight="true"
68            android:layout_below="@+id/toggleService"
69            android:layout_marginBottom="8dp"
70            android:layout_marginTop="8dp"
71            android:background="#F00F"
72            android:gravity="center_horizontal"
73            android:padding="8dp"
74            android:text="[service errors]"
75            android:textAppearance="?android:attr/textAppearanceMedium"
76            android:textColor="#FFF0"
77            tools:ignore="HardcodedText" />
78
79        <TextView
80            android:id="@+id/labelButtons"
81            android:layout_width="wrap_content"
82            android:layout_height="wrap_content"
83            android:layout_below="@+id/textError"
84            android:layout_marginTop="16dp"
85            android:text="@string/main_label_buttons"
86            android:textAppearance="?android:attr/textAppearanceLarge" />
87
88        <Button
89            android:id="@+id/btnOpenMultitouch"
90            android:layout_width="wrap_content"
91            android:layout_height="wrap_content"
92            android:layout_below="@+id/labelButtons"
93            android:layout_centerHorizontal="true"
94            android:layout_marginTop="16dp"
95            android:text="@string/main_btn_open_multitouch" />
96
97        <Button
98            android:id="@+id/btnOpenSensors"
99            android:layout_width="wrap_content"
100            android:layout_height="wrap_content"
101            android:layout_below="@+id/btnOpenMultitouch"
102            android:layout_centerHorizontal="true"
103            android:layout_marginTop="16dp"
104            android:text="@string/main_btn_open_sensors" />
105
106        <WebView
107            android:id="@+id/webIntro"
108            android:layout_width="fill_parent"
109            android:layout_height="wrap_content"
110            android:layout_below="@+id/btnOpenSensors"
111            android:layout_marginTop="16dp"
112            android:background="@null"
113            />
114
115    </RelativeLayout>
116</ScrollView>
117