1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2019 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 17<androidx.viewpager.widget.ViewPager 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 android:id="@+id/vehicle_ctrl_pager" 20 android:layout_width="match_parent" 21 android:layout_height="match_parent"> 22 23 <com.google.android.material.tabs.TabLayout 24 android:layout_width="match_parent" 25 android:layout_height="wrap_content" 26 android:layout_gravity="top" /> 27 28 <LinearLayout 29 android:tag="Doors/windows" 30 android:orientation="vertical" 31 android:layout_width="match_parent" 32 android:layout_height="match_parent"> 33 34 <LinearLayout 35 android:orientation="horizontal" 36 android:layout_width="match_parent" 37 android:layout_height="wrap_content"> 38 39 <TextView 40 android:layout_width="300dp" 41 android:layout_height="wrap_content" 42 android:text="Front left window:" /> 43 44 <Button android:id="@+id/winFLOpen" 45 android:layout_width="wrap_content" 46 android:layout_height="wrap_content" 47 android:text="Open" /> 48 49 <Button android:id="@+id/winFLClose" 50 android:layout_width="wrap_content" 51 android:layout_height="wrap_content" 52 android:text="Close" /> 53 54 <TextView android:id="@+id/winFLPos" 55 android:layout_marginLeft="20dp" 56 android:layout_width="wrap_content" 57 android:layout_height="wrap_content" /> 58 </LinearLayout> 59 60 <LinearLayout 61 android:orientation="horizontal" 62 android:layout_width="match_parent" 63 android:layout_height="wrap_content"> 64 65 <TextView 66 android:layout_width="300dp" 67 android:layout_height="wrap_content" 68 android:text="Front right window:" /> 69 70 <Button android:id="@+id/winFROpen" 71 android:layout_width="wrap_content" 72 android:layout_height="wrap_content" 73 android:text="Open" /> 74 75 <Button android:id="@+id/winFRClose" 76 android:layout_width="wrap_content" 77 android:layout_height="wrap_content" 78 android:text="Close" /> 79 80 <TextView android:id="@+id/winFRPos" 81 android:layout_marginLeft="20dp" 82 android:layout_width="wrap_content" 83 android:layout_height="wrap_content" /> 84 </LinearLayout> 85 86 <LinearLayout 87 android:orientation="horizontal" 88 android:layout_width="match_parent" 89 android:layout_height="wrap_content"> 90 91 <TextView 92 android:layout_width="300dp" 93 android:layout_height="wrap_content" 94 android:text="Rear left window:" /> 95 96 <Button android:id="@+id/winRLOpen" 97 android:layout_width="wrap_content" 98 android:layout_height="wrap_content" 99 android:text="Open" /> 100 101 <Button android:id="@+id/winRLClose" 102 android:layout_width="wrap_content" 103 android:layout_height="wrap_content" 104 android:text="Close" /> 105 106 <TextView android:id="@+id/winRLPos" 107 android:layout_marginLeft="20dp" 108 android:layout_width="wrap_content" 109 android:layout_height="wrap_content" /> 110 </LinearLayout> 111 112 <LinearLayout 113 android:orientation="horizontal" 114 android:layout_width="match_parent" 115 android:layout_height="wrap_content"> 116 117 <TextView 118 android:layout_width="300dp" 119 android:layout_height="wrap_content" 120 android:text="Rear right window:" /> 121 122 <Button android:id="@+id/winRROpen" 123 android:layout_width="wrap_content" 124 android:layout_height="wrap_content" 125 android:text="Open" /> 126 127 <Button android:id="@+id/winRRClose" 128 android:layout_width="wrap_content" 129 android:layout_height="wrap_content" 130 android:text="Close" /> 131 132 <TextView android:id="@+id/winRRPos" 133 android:layout_marginLeft="20dp" 134 android:layout_width="wrap_content" 135 android:layout_height="wrap_content" /> 136 </LinearLayout> 137 </LinearLayout> 138 139 <LinearLayout 140 android:tag="Prop test" 141 android:orientation="vertical" 142 android:layout_width="match_parent" 143 android:layout_height="match_parent"> 144 145 <LinearLayout 146 android:orientation="horizontal" 147 android:layout_width="match_parent" 148 android:layout_height="wrap_content"> 149 150 <TextView 151 android:layout_width="300dp" 152 android:layout_height="wrap_content" 153 android:text="PROTOCAN_TEST" /> 154 155 <Button android:id="@+id/protocan_test_on" 156 android:layout_width="wrap_content" 157 android:layout_height="wrap_content" 158 android:text="ON" /> 159 160 <Button android:id="@+id/protocan_test_off" 161 android:layout_width="wrap_content" 162 android:layout_height="wrap_content" 163 android:text="OFF" /> 164 165 </LinearLayout> 166 </LinearLayout> 167 168 169</androidx.viewpager.widget.ViewPager> 170