xref: /aosp_15_r20/sdk/apps/SdkController/res/layout/sensors.xml (revision 1789df15502f1991eff51ff970dce5df8404dd56)
1*1789df15SXin Li<?xml version="1.0" encoding="utf-8"?>
2*1789df15SXin Li<!--
3*1789df15SXin Li/*
4*1789df15SXin Li * Copyright (C) 2012 The Android Open Source Project
5*1789df15SXin Li *
6*1789df15SXin Li * Licensed under the Apache License, Version 2.0 (the "License"); you may not
7*1789df15SXin Li * use this file except in compliance with the License. You may obtain a copy of
8*1789df15SXin Li * the License at
9*1789df15SXin Li *
10*1789df15SXin Li * http://www.apache.org/licenses/LICENSE-2.0
11*1789df15SXin Li *
12*1789df15SXin Li * Unless required by applicable law or agreed to in writing, software
13*1789df15SXin Li * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14*1789df15SXin Li * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
15*1789df15SXin Li * License for the specific language governing permissions and limitations under
16*1789df15SXin Li * the License.
17*1789df15SXin Li */
18*1789df15SXin Li-->
19*1789df15SXin Li<LinearLayout
20*1789df15SXin Li    xmlns:android="http://schemas.android.com/apk/res/android"
21*1789df15SXin Li    xmlns:tools="http://schemas.android.com/tools"
22*1789df15SXin Li    android:layout_width="fill_parent"
23*1789df15SXin Li    android:layout_height="fill_parent"
24*1789df15SXin Li    android:orientation="vertical"
25*1789df15SXin Li    >
26*1789df15SXin Li
27*1789df15SXin Li    <TableLayout
28*1789df15SXin Li        android:layout_width="wrap_content"
29*1789df15SXin Li        android:layout_height="wrap_content"
30*1789df15SXin Li        android:layout_gravity="center_horizontal"
31*1789df15SXin Li        >
32*1789df15SXin Li
33*1789df15SXin Li        <TableRow
34*1789df15SXin Li            android:layout_width="wrap_content"
35*1789df15SXin Li            android:layout_height="wrap_content" >
36*1789df15SXin Li
37*1789df15SXin Li            <TextView
38*1789df15SXin Li                android:layout_width="wrap_content"
39*1789df15SXin Li                android:layout_height="wrap_content"
40*1789df15SXin Li                android:text="@string/sensors_sample_rate"
41*1789df15SXin Li                android:gravity="right"
42*1789df15SXin Li                android:layout_marginRight="8dp"
43*1789df15SXin Li                />
44*1789df15SXin Li            <EditText
45*1789df15SXin Li                android:id="@+id/textSampleRate"
46*1789df15SXin Li                android:layout_width="wrap_content"
47*1789df15SXin Li                android:layout_height="wrap_content"
48*1789df15SXin Li                android:ems="4"
49*1789df15SXin Li                android:gravity="right"
50*1789df15SXin Li                android:imeOptions="actionNone|flagNoExtractUi|flagNoFullscreen|"
51*1789df15SXin Li                android:inputType="number"
52*1789df15SXin Li                android:text="@string/sensors_default_sample_rate" />
53*1789df15SXin Li
54*1789df15SXin Li            <TextView
55*1789df15SXin Li                android:layout_width="wrap_content"
56*1789df15SXin Li                android:layout_height="wrap_content"
57*1789df15SXin Li                android:text="@string/sensors_hz_per_sensor" />
58*1789df15SXin Li
59*1789df15SXin Li        </TableRow>
60*1789df15SXin Li
61*1789df15SXin Li        <TableRow
62*1789df15SXin Li            android:layout_width="wrap_content"
63*1789df15SXin Li            android:layout_height="wrap_content" >
64*1789df15SXin Li
65*1789df15SXin Li            <TextView
66*1789df15SXin Li                android:layout_width="wrap_content"
67*1789df15SXin Li                android:layout_height="wrap_content"
68*1789df15SXin Li                android:gravity="right"
69*1789df15SXin Li                android:layout_marginRight="8dp"
70*1789df15SXin Li                android:text="@string/sensors_actual_rate" />
71*1789df15SXin Li
72*1789df15SXin Li            <TextView
73*1789df15SXin Li                android:id="@+id/textActualRate"
74*1789df15SXin Li                android:gravity="right"
75*1789df15SXin Li                android:text="--"
76*1789df15SXin Li                tools:ignore="HardcodedText"
77*1789df15SXin Li                android:paddingLeft="8dp"
78*1789df15SXin Li                android:paddingRight="8dp"
79*1789df15SXin Li                android:layout_width="wrap_content"
80*1789df15SXin Li                android:layout_height="wrap_content" />
81*1789df15SXin Li
82*1789df15SXin Li            <TextView
83*1789df15SXin Li                android:layout_width="wrap_content"
84*1789df15SXin Li                android:layout_height="wrap_content"
85*1789df15SXin Li                android:text="@string/sensors_hz_average" />
86*1789df15SXin Li
87*1789df15SXin Li        </TableRow>
88*1789df15SXin Li
89*1789df15SXin Li    </TableLayout>
90*1789df15SXin Li
91*1789df15SXin Li    <TextView
92*1789df15SXin Li        android:layout_width="fill_parent"
93*1789df15SXin Li        android:layout_height="wrap_content"
94*1789df15SXin Li        android:layout_marginTop="16dp"
95*1789df15SXin Li        android:text="@string/sensors_top_description" />
96*1789df15SXin Li
97*1789df15SXin Li    <ScrollView
98*1789df15SXin Li        android:id="@+id/scrollView1"
99*1789df15SXin Li        android:layout_width="fill_parent"
100*1789df15SXin Li        android:layout_height="0dp"
101*1789df15SXin Li        android:layout_weight="1" >
102*1789df15SXin Li
103*1789df15SXin Li        <TableLayout
104*1789df15SXin Li            android:id="@+id/tableLayout"
105*1789df15SXin Li            android:layout_width="fill_parent"
106*1789df15SXin Li            android:layout_height="wrap_content"
107*1789df15SXin Li            android:saveEnabled="false" />
108*1789df15SXin Li
109*1789df15SXin Li    </ScrollView>
110*1789df15SXin Li
111*1789df15SXin Li    <!-- Placeholder status text. Becomes visibility=gone when empty. -->
112*1789df15SXin Li    <TextView
113*1789df15SXin Li        android:id="@+id/textStatus"
114*1789df15SXin Li        android:layout_width="fill_parent"
115*1789df15SXin Li        android:layout_height="wrap_content"
116*1789df15SXin Li        android:layout_marginTop="8dp"
117*1789df15SXin Li        android:textAppearance="?android:attr/textAppearanceSmall" />
118*1789df15SXin Li
119*1789df15SXin Li    <!-- Placeholder error text. Becomes visibility=gone when empty. -->
120*1789df15SXin Li    <TextView
121*1789df15SXin Li        android:id="@+id/textError"
122*1789df15SXin Li        android:layout_width="fill_parent"
123*1789df15SXin Li        android:layout_height="wrap_content"
124*1789df15SXin Li        android:gravity="center_horizontal"
125*1789df15SXin Li        android:background="#F00F"
126*1789df15SXin Li        android:padding="8dp"
127*1789df15SXin Li        android:textAppearance="?android:attr/textAppearanceSmall"
128*1789df15SXin Li        android:textColor="#FFF0" />
129*1789df15SXin Li
130*1789df15SXin Li</LinearLayout>