Debian Codegraph @

apps/SdkController/res/layout-land/sensors.xml

raw
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 <LinearLayout
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"
25 >
26
27 <RelativeLayout
28 android:layout_width="match_parent"
29 android:layout_height="wrap_content" >
30
31 <TableRow
32 android:id="@+id/row1"
33 android:layout_width="wrap_content"
34 android:layout_height="wrap_content" >
35
36 <TextView
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"
42 />
43
44 <EditText
45 android:id="@+id/textSampleRate"
46 android:layout_width="wrap_content"
47 android:layout_height="wrap_content"
48 android:ems="4"
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" />
54
55 <TextView
56 android:layout_width="wrap_content"
57 android:layout_height="wrap_content"
58 android:text="@string/sensors_hz_per_sensor" />
59
60 </TableRow>
61
62 <TableRow
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"
68 >
69
70 <TextView
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" />
76
77 <TextView
78 android:id="@+id/textActualRate"
79 android:gravity="right"
80 android:text="--"
81 tools:ignore="HardcodedText"
82 android:paddingLeft="8dp"
83 android:paddingRight="8dp"
84 android:layout_width="wrap_content"
85 android:layout_height="wrap_content" />
86
87 <TextView
88 android:layout_width="wrap_content"
89 android:layout_height="wrap_content"
90 android:text="@string/sensors_hz_average" />
91
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
95 ignored. -->
96 <EditText
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"
103 />
104
105 </TableRow>
106
107 </RelativeLayout>
108
109 <TableLayout
110 android:layout_width="wrap_content"
111 android:layout_height="wrap_content"
112 android:layout_gravity="center_horizontal"
113 >
114
115 <TableRow
116 android:layout_width="wrap_content"
117 android:layout_height="wrap_content" >
118
119 </TableRow>
120
121 <TableRow
122 android:layout_width="wrap_content"
123 android:layout_height="wrap_content" >
124
125 </TableRow>
126
127 </TableLayout>
128
129 <TextView
130 android:layout_width="fill_parent"
131 android:layout_height="wrap_content"
132 android:layout_marginTop="16dp"
133 android:text="@string/sensors_top_description" />
134
135 <ScrollView
136 android:id="@+id/scrollView1"
137 android:layout_width="fill_parent"
138 android:layout_height="0dp"
139 android:layout_weight="1" >
140
141 <TableLayout
142 android:id="@+id/tableLayout"
143 android:layout_width="fill_parent"
144 android:layout_height="wrap_content"
145 android:saveEnabled="false" />
146
147 </ScrollView>
148
149 <!-- Placeholder status text. Becomes visibility=gone when empty. -->
150 <TextView
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" />
156
157 <!-- Placeholder error text. Becomes visibility=gone when empty. -->
158 <TextView
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" />
167
168 </LinearLayout>