1 <?xml version="1.0" encoding="utf-8"?>
4 * Copyright (C) 2012 The Android Open Source Project
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
10 * http://www.apache.org/licenses/LICENSE-2.0
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
20 xmlns:android="http://schemas.android.com/apk/res/android"
21 xmlns:tools="http://schemas.android.com/tools"
22 android:layout_width="fill_parent"
23 android:layout_height="fill_parent"
24 android:orientation="vertical"
28 android:layout_width="match_parent"
29 android:layout_height="wrap_content" >
32 android:id="@+id/row1"
33 android:layout_width="wrap_content"
34 android:layout_height="wrap_content" >
37 android:layout_width="wrap_content"
38 android:layout_height="wrap_content"
39 android:text="@string/sensors_sample_rate"
40 android:gravity="right"
41 android:layout_marginRight="8dp"
45 android:id="@+id/textSampleRate"
46 android:layout_width="wrap_content"
47 android:layout_height="wrap_content"
49 android:gravity="right"
50 android:imeOptions="actionNone|flagNoExtractUi|flagNoFullscreen|"
51 android:inputType="number"
52 android:text="@string/sensors_default_sample_rate"
53 tools:ignore="HardcodedText" />
56 android:layout_width="wrap_content"
57 android:layout_height="wrap_content"
58 android:text="@string/sensors_hz_per_sensor" />
63 android:id="@+id/row2"
64 android:layout_width="wrap_content"
65 android:layout_height="wrap_content"
66 android:layout_alignParentRight="true"
67 android:layout_alignBaseline="@+id/row1"
71 android:layout_width="wrap_content"
72 android:layout_height="wrap_content"
73 android:gravity="right"
74 android:layout_marginRight="8dp"
75 android:text="@string/sensors_actual_rate" />
78 android:id="@+id/textActualRate"
79 android:gravity="right"
81 tools:ignore="HardcodedText"
82 android:paddingLeft="8dp"
83 android:paddingRight="8dp"
84 android:layout_width="wrap_content"
85 android:layout_height="wrap_content" />
88 android:layout_width="wrap_content"
89 android:layout_height="wrap_content"
90 android:text="@string/sensors_hz_average" />
92 <!-- This 1-pixel wide invisible edit field makes sure that row1 and
93 row2 have the same height and an equal baseline. This works around
94 the fact that row2's attribute layout_alignBaseline=row1 is in fact
97 android:layout_width="1px"
98 android:layout_height="wrap_content"
99 android:imeOptions="actionNone"
100 android:focusable="false"
101 android:focusableInTouchMode="false"
102 android:visibility="invisible"
110 android:layout_width="wrap_content"
111 android:layout_height="wrap_content"
112 android:layout_gravity="center_horizontal"
116 android:layout_width="wrap_content"
117 android:layout_height="wrap_content" >
122 android:layout_width="wrap_content"
123 android:layout_height="wrap_content" >
130 android:layout_width="fill_parent"
131 android:layout_height="wrap_content"
132 android:layout_marginTop="16dp"
133 android:text="@string/sensors_top_description" />
136 android:id="@+id/scrollView1"
137 android:layout_width="fill_parent"
138 android:layout_height="0dp"
139 android:layout_weight="1" >
142 android:id="@+id/tableLayout"
143 android:layout_width="fill_parent"
144 android:layout_height="wrap_content"
145 android:saveEnabled="false" />
149 <!-- Placeholder status text. Becomes visibility=gone when empty. -->
151 android:id="@+id/textStatus"
152 android:layout_width="fill_parent"
153 android:layout_height="wrap_content"
154 android:layout_marginTop="8dp"
155 android:textAppearance="?android:attr/textAppearanceSmall" />
157 <!-- Placeholder error text. Becomes visibility=gone when empty. -->
159 android:id="@+id/textError"
160 android:layout_width="fill_parent"
161 android:layout_height="wrap_content"
162 android:gravity="center_horizontal"
163 android:background="#F00F"
164 android:padding="8dp"
165 android:textAppearance="?android:attr/textAppearanceSmall"
166 android:textColor="#FFF0" />