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 <LinearLayout 28 android:baselineAligned="false" 29 android:layout_height="wrap_content" 30 android:layout_weight="1" 31 android:layout_width="0dp" 32 android:orientation="vertical" > 33 <AutoCompleteTextView 34 android:id="@+id/autoCompletePropertyNameInput" 35 android:layout_height="wrap_content" 36 android:layout_width="match_parent" 37 android:hint="Property Name" /> 38 <Spinner 39 android:baselineAligned="false" 40 android:id="@+id/sPropertyId" 41 android:layout_height="wrap_content" 42 android:layout_width="match_parent" /> 43 </LinearLayout> 44 <LinearLayout 45 android:baselineAligned="false" 46 android:layout_height="wrap_content" 47 android:layout_weight="1" 48 android:layout_width="0dp" 49 android:orientation="vertical" > 50 <LinearLayout 51 android:baselineAligned="false" 52 android:layout_height="wrap_content" 53 android:layout_width="match_parent" 54 android:orientation="horizontal" > 55 <Button 56 android:baselineAligned="false" 57 android:id="@+id/bGetProperty" 58 android:layout_height="wrap_content" 59 android:layout_weight="1" 60 android:layout_width="0dp" 61 android:text="@string/property_get" 62 android:textSize="@dimen/propertyTextSize"/> 63 <Button 64 android:baselineAligned="false" 65 android:id="@+id/getPropertyAsync" 66 android:layout_height="wrap_content" 67 android:layout_weight="1" 68 android:layout_width="0dp" 69 android:text="@string/property_get_async" 70 android:textSize="@dimen/propertyTextSize"/> 71 </LinearLayout> 72 <LinearLayout 73 android:baselineAligned="false" 74 android:layout_height="wrap_content" 75 android:layout_width="match_parent" 76 android:orientation="horizontal" > 77 <Button 78 android:baselineAligned="false" 79 android:id="@+id/bGetMinMaxSupportedValues" 80 android:layout_height="wrap_content" 81 android:layout_weight="1" 82 android:layout_width="0dp" 83 android:text="@string/property_get_min_max_supported_values" 84 android:textSize="@dimen/propertyTextSize"/> 85 <Button 86 android:baselineAligned="false" 87 android:id="@+id/bGetSupportedValuesList" 88 android:layout_height="wrap_content" 89 android:layout_weight="1" 90 android:layout_width="0dp" 91 android:text="@string/property_get_supported_values_list" 92 android:textSize="@dimen/propertyTextSize"/> 93 </LinearLayout> 94 </LinearLayout> 95 </LinearLayout> 96 97 <LinearLayout 98 android:baselineAligned="false" 99 android:layout_height="0dp" 100 android:layout_weight="1" 101 android:layout_width="match_parent" 102 android:orientation="horizontal" > 103 <Spinner 104 android:baselineAligned="false" 105 android:id="@+id/sAreaId" 106 android:layout_height="wrap_content" 107 android:layout_weight="1" 108 android:layout_width="0dp" /> 109 <EditText 110 android:baselineAligned="false" 111 android:importantForAutofill="no" 112 android:hint="@string/set_value_hint" 113 android:id="@+id/etSetPropertyValue" 114 android:layout_height="wrap_content" 115 android:layout_weight="1" 116 android:layout_width="0dp" 117 android:inputType="text" /> 118 <Button 119 android:baselineAligned="false" 120 android:id="@+id/bSetProperty" 121 android:layout_height="wrap_content" 122 android:layout_weight="1" 123 android:layout_width="0dp" 124 android:text="@string/property_set" 125 android:textSize="@dimen/propertyTextSize"/> 126 <Button 127 android:baselineAligned="false" 128 android:id="@+id/SetPropertyAsync" 129 android:layout_height="wrap_content" 130 android:layout_weight="1" 131 android:layout_width="0dp" 132 android:text="@string/property_set_async" 133 android:textSize="@dimen/propertyTextSize"/> 134 </LinearLayout> 135 136 <LinearLayout 137 android:baselineAligned="false" 138 android:layout_height="0dp" 139 android:layout_weight="3" 140 android:layout_width="match_parent" 141 android:orientation="horizontal" > 142 <LinearLayout 143 android:baselineAligned="false" 144 android:layout_height="match_parent" 145 android:layout_weight="1" 146 android:layout_width="0dp" 147 android:orientation="vertical" > 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/tvSubscriptionRate" 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_subscription_rate_hz" 162 android:textSize="@dimen/propertyTextSize"/> 163 <Spinner 164 android:baselineAligned="false" 165 android:id="@+id/sSubscriptionRate" 166 android:layout_height="wrap_content" 167 android:layout_weight="1" 168 android:layout_width="0dp" /> 169 </LinearLayout> 170 171 <LinearLayout 172 android:baselineAligned="false" 173 android:layout_height="0dp" 174 android:layout_weight="1" 175 android:layout_width="match_parent" 176 android:orientation="horizontal" > 177 <TextView 178 android:baselineAligned="false" 179 android:id="@+id/tvResolution" 180 android:gravity="end" 181 android:layout_height="wrap_content" 182 android:layout_weight="1" 183 android:layout_width="0dp" 184 android:text="@string/property_resolution" 185 android:textSize="@dimen/propertyTextSize"/> 186 <Spinner 187 android:baselineAligned="false" 188 android:id="@+id/sResolution" 189 android:layout_height="wrap_content" 190 android:layout_weight="1" 191 android:layout_width="0dp" /> 192 </LinearLayout> 193 194 <LinearLayout 195 android:baselineAligned="false" 196 android:layout_height="0dp" 197 android:layout_weight="1" 198 android:layout_width="match_parent" 199 android:orientation="horizontal" > 200 <TextView 201 android:baselineAligned="false" 202 android:id="@+id/tvVariableUpdateRate" 203 android:gravity="end" 204 android:layout_height="wrap_content" 205 android:layout_weight="1" 206 android:layout_width="0dp" 207 android:text="@string/property_variable_update_rate" 208 android:textSize="@dimen/propertyTextSize"/> 209 <Spinner 210 android:baselineAligned="false" 211 android:id="@+id/sVariableUpdateRate" 212 android:layout_height="wrap_content" 213 android:layout_weight="1" 214 android:layout_width="0dp" /> 215 </LinearLayout> 216 217 <ToggleButton 218 android:clickable="false" 219 android:id="@+id/tbSubscribeButton" 220 android:layout_height="0dp" 221 android:layout_weight="1" 222 android:layout_width="match_parent" 223 android:textOff="@string/subscribe" 224 android:textOn="@string/unsubscribe" 225 android:textSize="@dimen/propertyTextSize"/> 226 <ToggleButton 227 android:clickable="true" 228 android:id="@+id/tbSubscribeSupportedValuesChangeButton" 229 android:layout_height="0dp" 230 android:layout_weight="1" 231 android:layout_width="match_parent" 232 android:textOff="@string/subscribeSupportedValuesChange" 233 android:textOn="@string/unsubscribeSupportedValuesChange" 234 android:textSize="@dimen/propertyTextSize"/> 235 </LinearLayout> 236 <!-- Event Log --> 237 <ScrollView 238 android:baselineAligned="false" 239 android:id="@+id/svEventLog" 240 android:layout_height="wrap_content" 241 android:layout_weight="1" 242 android:layout_width="0dp" 243 android:scrollbars="vertical"> 244 <TextView 245 android:baselineAligned="false" 246 android:id="@+id/tvEventLog" 247 android:gravity="start" 248 android:layout_height="match_parent" 249 android:layout_width="match_parent" 250 android:textSize="@dimen/propertyValueTextSize"/> 251 </ScrollView> 252 </LinearLayout> 253 <Button 254 android:baselineAligned="false" 255 android:id="@+id/bClearLog" 256 android:layout_height="0dp" 257 android:layout_weight="1" 258 android:layout_width="match_parent" 259 android:text="@string/property_clear" 260 android:textSize="@dimen/propertyTextSize"/> 261</LinearLayout> 262