xref: /aosp_15_r20/sdk/apps/SdkController/res/layout-land/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    <RelativeLayout
28*1789df15SXin Li        android:layout_width="match_parent"
29*1789df15SXin Li        android:layout_height="wrap_content" >
30*1789df15SXin Li
31*1789df15SXin Li        <TableRow
32*1789df15SXin Li            android:id="@+id/row1"
33*1789df15SXin Li            android:layout_width="wrap_content"
34*1789df15SXin Li            android:layout_height="wrap_content" >
35*1789df15SXin Li
36*1789df15SXin Li            <TextView
37*1789df15SXin Li                android:layout_width="wrap_content"
38*1789df15SXin Li                android:layout_height="wrap_content"
39*1789df15SXin Li                android:text="@string/sensors_sample_rate"
40*1789df15SXin Li                android:gravity="right"
41*1789df15SXin Li                android:layout_marginRight="8dp"
42*1789df15SXin Li                />
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                tools:ignore="HardcodedText" />
54*1789df15SXin Li
55*1789df15SXin Li            <TextView
56*1789df15SXin Li                android:layout_width="wrap_content"
57*1789df15SXin Li                android:layout_height="wrap_content"
58*1789df15SXin Li                android:text="@string/sensors_hz_per_sensor" />
59*1789df15SXin Li
60*1789df15SXin Li        </TableRow>
61*1789df15SXin Li
62*1789df15SXin Li        <TableRow
63*1789df15SXin Li            android:id="@+id/row2"
64*1789df15SXin Li            android:layout_width="wrap_content"
65*1789df15SXin Li            android:layout_height="wrap_content"
66*1789df15SXin Li            android:layout_alignParentRight="true"
67*1789df15SXin Li            android:layout_alignBaseline="@+id/row1"
68*1789df15SXin Li            >
69*1789df15SXin Li
70*1789df15SXin Li            <TextView
71*1789df15SXin Li                android:layout_width="wrap_content"
72*1789df15SXin Li                android:layout_height="wrap_content"
73*1789df15SXin Li                android:gravity="right"
74*1789df15SXin Li                android:layout_marginRight="8dp"
75*1789df15SXin Li                android:text="@string/sensors_actual_rate" />
76*1789df15SXin Li
77*1789df15SXin Li            <TextView
78*1789df15SXin Li                android:id="@+id/textActualRate"
79*1789df15SXin Li                android:gravity="right"
80*1789df15SXin Li                android:text="--"
81*1789df15SXin Li                tools:ignore="HardcodedText"
82*1789df15SXin Li                android:paddingLeft="8dp"
83*1789df15SXin Li                android:paddingRight="8dp"
84*1789df15SXin Li                android:layout_width="wrap_content"
85*1789df15SXin Li                android:layout_height="wrap_content" />
86*1789df15SXin Li
87*1789df15SXin Li            <TextView
88*1789df15SXin Li                android:layout_width="wrap_content"
89*1789df15SXin Li                android:layout_height="wrap_content"
90*1789df15SXin Li                android:text="@string/sensors_hz_average" />
91*1789df15SXin Li
92*1789df15SXin Li            <!-- This 1-pixel wide invisible edit field makes sure that row1 and
93*1789df15SXin Li                 row2 have the same height and an equal baseline. This works around
94*1789df15SXin Li                 the fact that row2's attribute layout_alignBaseline=row1 is in fact
95*1789df15SXin Li                 ignored. -->
96*1789df15SXin Li            <EditText
97*1789df15SXin Li                android:layout_width="1px"
98*1789df15SXin Li                android:layout_height="wrap_content"
99*1789df15SXin Li                android:imeOptions="actionNone"
100*1789df15SXin Li                android:focusable="false"
101*1789df15SXin Li                android:focusableInTouchMode="false"
102*1789df15SXin Li                android:visibility="invisible"
103*1789df15SXin Li                />
104*1789df15SXin Li
105*1789df15SXin Li        </TableRow>
106*1789df15SXin Li
107*1789df15SXin Li    </RelativeLayout>
108*1789df15SXin Li
109*1789df15SXin Li    <TableLayout
110*1789df15SXin Li        android:layout_width="wrap_content"
111*1789df15SXin Li        android:layout_height="wrap_content"
112*1789df15SXin Li        android:layout_gravity="center_horizontal"
113*1789df15SXin Li        >
114*1789df15SXin Li
115*1789df15SXin Li        <TableRow
116*1789df15SXin Li            android:layout_width="wrap_content"
117*1789df15SXin Li            android:layout_height="wrap_content" >
118*1789df15SXin Li
119*1789df15SXin Li        </TableRow>
120*1789df15SXin Li
121*1789df15SXin Li        <TableRow
122*1789df15SXin Li            android:layout_width="wrap_content"
123*1789df15SXin Li            android:layout_height="wrap_content" >
124*1789df15SXin Li
125*1789df15SXin Li        </TableRow>
126*1789df15SXin Li
127*1789df15SXin Li    </TableLayout>
128*1789df15SXin Li
129*1789df15SXin Li    <TextView
130*1789df15SXin Li        android:layout_width="fill_parent"
131*1789df15SXin Li        android:layout_height="wrap_content"
132*1789df15SXin Li        android:layout_marginTop="16dp"
133*1789df15SXin Li        android:text="@string/sensors_top_description" />
134*1789df15SXin Li
135*1789df15SXin Li    <ScrollView
136*1789df15SXin Li        android:id="@+id/scrollView1"
137*1789df15SXin Li        android:layout_width="fill_parent"
138*1789df15SXin Li        android:layout_height="0dp"
139*1789df15SXin Li        android:layout_weight="1" >
140*1789df15SXin Li
141*1789df15SXin Li        <TableLayout
142*1789df15SXin Li            android:id="@+id/tableLayout"
143*1789df15SXin Li            android:layout_width="fill_parent"
144*1789df15SXin Li            android:layout_height="wrap_content"
145*1789df15SXin Li            android:saveEnabled="false" />
146*1789df15SXin Li
147*1789df15SXin Li    </ScrollView>
148*1789df15SXin Li
149*1789df15SXin Li    <!-- Placeholder status text. Becomes visibility=gone when empty. -->
150*1789df15SXin Li    <TextView
151*1789df15SXin Li        android:id="@+id/textStatus"
152*1789df15SXin Li        android:layout_width="fill_parent"
153*1789df15SXin Li        android:layout_height="wrap_content"
154*1789df15SXin Li        android:layout_marginTop="8dp"
155*1789df15SXin Li        android:textAppearance="?android:attr/textAppearanceSmall" />
156*1789df15SXin Li
157*1789df15SXin Li    <!-- Placeholder error text. Becomes visibility=gone when empty. -->
158*1789df15SXin Li    <TextView
159*1789df15SXin Li        android:id="@+id/textError"
160*1789df15SXin Li        android:layout_width="fill_parent"
161*1789df15SXin Li        android:layout_height="wrap_content"
162*1789df15SXin Li        android:gravity="center_horizontal"
163*1789df15SXin Li        android:background="#F00F"
164*1789df15SXin Li        android:padding="8dp"
165*1789df15SXin Li        android:textAppearance="?android:attr/textAppearanceSmall"
166*1789df15SXin Li        android:textColor="#FFF0" />
167*1789df15SXin Li
168*1789df15SXin Li</LinearLayout>