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_width="match_parent" 18 android:layout_height="match_parent" 19 android:orientation="horizontal" > 20 <ListView 21 android:id="@+id/lvPropertyList" 22 android:layout_height="match_parent" 23 android:layout_weight="1" 24 android:layout_width="0dp" 25 android:scrollbars="vertical"> 26 </ListView> 27 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 28 android:layout_height="match_parent" 29 android:layout_weight="1" 30 android:layout_width="0dp" 31 android:orientation="vertical" > 32 33 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 34 android:layout_height="0dp" 35 android:layout_weight="2" 36 android:layout_width="match_parent" 37 android:orientation="horizontal" > 38 <Spinner 39 android:id="@+id/sPropertyId" 40 android:layout_height="wrap_content" 41 android:layout_weight="1" 42 android:layout_width="0dp" /> 43 <Button 44 android:id="@+id/bGetProperty" 45 android:layout_height="wrap_content" 46 android:layout_weight="1" 47 android:layout_width="0dp" 48 android:text="@string/property_get" 49 android:textSize="@dimen/propertyTextSize"/> 50 <TextView 51 android:id="@+id/tvGetPropertyValue" 52 android:gravity="center" 53 android:layout_height="wrap_content" 54 android:layout_weight="2" 55 android:layout_width="0dp" 56 android:textSize="@dimen/propertyValueTextSize"/> 57 </LinearLayout> 58 59 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 60 android:layout_height="0dp" 61 android:layout_weight="1" 62 android:layout_width="match_parent" 63 android:orientation="horizontal" > 64 <Spinner 65 android:id="@+id/sAreaId" 66 android:layout_height="wrap_content" 67 android:layout_weight="1" 68 android:layout_width="0dp" /> 69 <EditText 70 android:id="@+id/etSetPropertyValue" 71 android:layout_height="wrap_content" 72 android:layout_weight="2" 73 android:layout_width="0dp" 74 android:inputType="phone" /> 75 <Button 76 android:id="@+id/bSetProperty" 77 android:layout_height="wrap_content" 78 android:layout_weight="1" 79 android:layout_width="0dp" 80 android:text="@string/property_set" 81 android:textSize="@dimen/propertyTextSize"/> 82 </LinearLayout> 83 84 <!-- Event Log --> 85 <ScrollView 86 android:id="@+id/svEventLog" 87 android:layout_height="0dp" 88 android:layout_weight="6" 89 android:layout_width="match_parent" 90 android:scrollbars="vertical"> 91 <TextView 92 android:id="@+id/tvEventLog" 93 android:gravity="left" 94 android:layout_height="match_parent" 95 android:layout_width="match_parent" 96 android:textSize="@dimen/propertyValueTextSize"/> 97 </ScrollView> 98 <Button 99 android:id="@+id/bClearLog" 100 android:layout_height="0dp" 101 android:layout_weight="1" 102 android:layout_width="match_parent" 103 android:text="@string/property_clear" 104 android:textSize="@dimen/propertyTextSize"/> 105 </LinearLayout> 106 </LinearLayout> 107