1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2017 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
17    android:layout_height="match_parent"
18    android:layout_width="match_parent"
19    android:orientation="vertical" >
20
21    <LinearLayout
22        android:baselineAligned="false"
23        android:layout_height="0dp"
24        android:layout_weight="1"
25        android:layout_width="match_parent"
26        android:orientation="horizontal" >
27        <Spinner
28            android:baselineAligned="false"
29            android:id="@+id/sPropertyId"
30            android:layout_height="wrap_content"
31            android:layout_weight="2"
32            android:layout_width="0dp" />
33        <Button
34            android:baselineAligned="false"
35            android:id="@+id/bGetProperty"
36            android:layout_height="wrap_content"
37            android:layout_weight="1"
38            android:layout_width="0dp"
39            android:text="@string/property_get"
40            android:textSize="@dimen/propertyTextSize"/>
41        <Button
42            android:baselineAligned="false"
43            android:id="@+id/getPropertyAsync"
44            android:layout_height="wrap_content"
45            android:layout_weight="1"
46            android:layout_width="0dp"
47            android:text="@string/property_get_async"
48            android:textSize="@dimen/propertyTextSize"/>
49    </LinearLayout>
50
51    <LinearLayout
52        android:baselineAligned="false"
53        android:layout_height="0dp"
54        android:layout_weight="1"
55        android:layout_width="match_parent"
56        android:orientation="horizontal" >
57        <Spinner
58            android:baselineAligned="false"
59            android:id="@+id/sAreaId"
60            android:layout_height="wrap_content"
61            android:layout_weight="1"
62            android:layout_width="0dp" />
63        <EditText
64            android:baselineAligned="false"
65            android:importantForAutofill="no"
66            android:hint="@string/set_value_hint"
67            android:id="@+id/etSetPropertyValue"
68            android:layout_height="wrap_content"
69            android:layout_weight="1"
70            android:layout_width="0dp"
71            android:inputType="text" />
72        <Button
73            android:baselineAligned="false"
74            android:id="@+id/bSetProperty"
75            android:layout_height="wrap_content"
76            android:layout_weight="1"
77            android:layout_width="0dp"
78            android:text="@string/property_set"
79            android:textSize="@dimen/propertyTextSize"/>
80        <Button
81            android:baselineAligned="false"
82            android:id="@+id/SetPropertyAsync"
83            android:layout_height="wrap_content"
84            android:layout_weight="1"
85            android:layout_width="0dp"
86            android:text="@string/property_set_async"
87            android:textSize="@dimen/propertyTextSize"/>
88    </LinearLayout>
89
90    <LinearLayout
91        android:baselineAligned="false"
92        android:layout_height="0dp"
93        android:layout_weight="3"
94        android:layout_width="match_parent"
95        android:orientation="horizontal" >
96        <LinearLayout
97            android:baselineAligned="false"
98            android:layout_height="match_parent"
99            android:layout_weight="1"
100            android:layout_width="0dp"
101            android:orientation="vertical" >
102            <LinearLayout
103                android:baselineAligned="false"
104                android:layout_height="0dp"
105                android:layout_weight="1"
106                android:layout_width="match_parent"
107                android:orientation="horizontal" >
108                <TextView
109                    android:baselineAligned="false"
110                    android:id="@+id/tvSubscriptionRate"
111                    android:gravity="end"
112                    android:layout_height="wrap_content"
113                    android:layout_weight="1"
114                    android:layout_width="0dp"
115                    android:text="@string/property_subscription_rate_hz"
116                    android:textSize="@dimen/propertyTextSize"/>
117                <Spinner
118                    android:baselineAligned="false"
119                    android:id="@+id/sSubscriptionRate"
120                    android:layout_height="wrap_content"
121                    android:layout_weight="1"
122                    android:layout_width="0dp" />
123            </LinearLayout>
124
125            <LinearLayout
126                android:baselineAligned="false"
127                android:layout_height="0dp"
128                android:layout_weight="1"
129                android:layout_width="match_parent"
130                android:orientation="horizontal" >
131                <TextView
132                    android:baselineAligned="false"
133                    android:id="@+id/tvResolution"
134                    android:gravity="end"
135                    android:layout_height="wrap_content"
136                    android:layout_weight="1"
137                    android:layout_width="0dp"
138                    android:text="@string/property_resolution"
139                    android:textSize="@dimen/propertyTextSize"/>
140                <Spinner
141                    android:baselineAligned="false"
142                    android:id="@+id/sResolution"
143                    android:layout_height="wrap_content"
144                    android:layout_weight="1"
145                    android:layout_width="0dp" />
146            </LinearLayout>
147
148            <LinearLayout
149                android:baselineAligned="false"
150                android:layout_height="0dp"
151                android:layout_weight="1"
152                android:layout_width="match_parent"
153                android:orientation="horizontal" >
154                <TextView
155                    android:baselineAligned="false"
156                    android:id="@+id/tvVariableUpdateRate"
157                    android:gravity="end"
158                    android:layout_height="wrap_content"
159                    android:layout_weight="1"
160                    android:layout_width="0dp"
161                    android:text="@string/property_variable_update_rate"
162                    android:textSize="@dimen/propertyTextSize"/>
163                <Spinner
164                    android:baselineAligned="false"
165                    android:id="@+id/sVariableUpdateRate"
166                    android:layout_height="wrap_content"
167                    android:layout_weight="1"
168                    android:layout_width="0dp" />
169            </LinearLayout>
170
171            <ToggleButton
172                android:clickable="false"
173                android:id="@+id/tbSubscribeButton"
174                android:layout_height="0dp"
175                android:layout_weight="1"
176                android:layout_width="match_parent"
177                android:textOff="@string/subscribe"
178                android:textOn="@string/unsubscribe"
179                android:textSize="@dimen/propertyTextSize"/>
180        </LinearLayout>
181        <!-- Event Log -->
182        <ScrollView
183            android:baselineAligned="false"
184            android:id="@+id/svEventLog"
185            android:layout_height="wrap_content"
186            android:layout_weight="1"
187            android:layout_width="0dp"
188            android:scrollbars="vertical">
189            <TextView
190                android:baselineAligned="false"
191                android:id="@+id/tvEventLog"
192                android:gravity="start"
193                android:layout_height="match_parent"
194                android:layout_width="match_parent"
195                android:textSize="@dimen/propertyValueTextSize"/>
196        </ScrollView>
197    </LinearLayout>
198    <Button
199        android:baselineAligned="false"
200        android:id="@+id/bClearLog"
201        android:layout_height="0dp"
202        android:layout_weight="1"
203        android:layout_width="match_parent"
204        android:text="@string/property_clear"
205        android:textSize="@dimen/propertyTextSize"/>
206</LinearLayout>
207