1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2018 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:weightSum="2"> 20 <LinearLayout 21 android:layout_width="match_parent" 22 android:layout_height="match_parent" 23 android:layout_weight="1" 24 android:orientation="vertical"> 25 <LinearLayout 26 style="@style/SectionContainer" 27 android:layout_width="match_parent" 28 android:layout_height="wrap_content" 29 android:orientation="vertical"> 30 <TextView 31 style="@style/SectionHeader" 32 android:text="@string/section_header_garage_mode_config"/> 33 <LinearLayout 34 android:layout_width="match_parent" 35 android:layout_height="match_parent" 36 android:weightSum="2"> 37 <Button 38 style="@style/Button" 39 android:id="@+id/enterGarageModeBtn" 40 android:layout_width="match_parent" 41 android:layout_height="match_parent" 42 android:layout_weight="1" 43 android:text="@string/button_enter_garage_mode"/> 44 <Button 45 style="@style/Button" 46 android:id="@+id/exitGarageModeBtn" 47 android:layout_width="match_parent" 48 android:layout_height="match_parent" 49 android:layout_weight="1" 50 android:text="@string/button_exit_garage_mode"/> 51 </LinearLayout> 52 </LinearLayout> 53 <LinearLayout 54 style="@style/SectionContainer" 55 android:layout_width="match_parent" 56 android:layout_height="wrap_content" 57 android:orientation="vertical"> 58 <TextView 59 style="@style/SectionHeader" 60 android:text="@string/section_header_watchdog"/> 61 <ScrollView 62 android:layout_width="match_parent" 63 android:layout_height="wrap_content" 64 android:fillViewport="true"> 65 <TextView 66 android:id="@+id/garageModeWatchdog" 67 android:layout_width="match_parent" 68 android:layout_height="wrap_content" 69 android:textSize="18sp" 70 android:text="@string/no_results"/> 71 </ScrollView> 72 </LinearLayout> 73 </LinearLayout> 74 <LinearLayout 75 android:layout_width="match_parent" 76 android:layout_height="match_parent" 77 android:layout_weight="1" 78 android:orientation="vertical"> 79 <LinearLayout 80 style="@style/SectionContainer" 81 android:layout_width="match_parent" 82 android:layout_height="wrap_content" 83 android:orientation="vertical" 84 android:weightSum="5"> 85 <TextView 86 style="@style/SectionHeader" 87 android:layout_weight="1" 88 android:text="@string/section_header_job_configuration"/> 89 <LinearLayout 90 android:layout_width="match_parent" 91 android:layout_height="match_parent" 92 android:layout_weight="1"> 93 <LinearLayout 94 android:layout_width="match_parent" 95 android:layout_height="match_parent" 96 android:layout_weight="1"> 97 <TextView 98 style="@style/SpinnerLabel" 99 android:text="@string/spinner_label_network_type"/> 100 <LinearLayout 101 style="@style/SectionContainer" 102 android:layout_width="wrap_content" 103 android:layout_height="match_parent"> 104 <Spinner 105 style="@style/Spinner" 106 android:id="@+id/networkType"/> 107 </LinearLayout> 108 </LinearLayout> 109 <CheckBox 110 style="@style/Checkbox" 111 android:id="@+id/requirePersistedCheckbox" 112 android:layout_width="match_parent" 113 android:layout_height="match_parent" 114 android:layout_weight="1" 115 android:text="@string/checkbox_require_persisted"/> 116 </LinearLayout> 117 <LinearLayout 118 android:layout_width="match_parent" 119 android:layout_height="match_parent" 120 android:layout_weight="1" 121 android:weightSum="2"> 122 <CheckBox 123 style="@style/Checkbox" 124 android:id="@+id/requireIdlenessCheckbox" 125 android:layout_width="match_parent" 126 android:layout_height="match_parent" 127 android:layout_weight="1" 128 android:text="@string/checkbox_require_idleness"/> 129 <CheckBox 130 style="@style/Checkbox" 131 android:id="@+id/requireChargingCheckbox" 132 android:layout_width="match_parent" 133 android:layout_height="match_parent" 134 android:layout_weight="1" 135 android:text="@string/checkbox_require_charging"/> 136 </LinearLayout> 137 <LinearLayout 138 android:layout_width="match_parent" 139 android:layout_height="match_parent" 140 android:layout_weight="1" 141 android:orientation="horizontal"> 142 <TextView 143 style="@style/SpinnerLabel" 144 android:text="@string/spinner_label_job_duration"/> 145 <LinearLayout 146 style="@style/SectionContainer" 147 android:layout_width="wrap_content" 148 android:layout_height="match_parent"> 149 <Spinner 150 style="@style/Spinner" 151 android:id="@+id/jobDuration"/> 152 </LinearLayout> 153 </LinearLayout> 154 <Button 155 style="@style/Button" 156 android:id="@+id/addJobBtn" 157 android:layout_width="match_parent" 158 android:layout_height="match_parent" 159 android:text="@string/button_schedule_job" 160 android:layout_weight="1"/> 161 </LinearLayout> 162 <LinearLayout 163 style="@style/SectionContainer" 164 android:layout_width="wrap_content" 165 android:layout_height="match_parent" 166 android:orientation="vertical"> 167 <TextView 168 style="@style/SectionHeader" 169 android:text="@string/section_header_jobs_list"/> 170 <ListView 171 android:id="@+id/jobsListView" 172 android:layout_width="match_parent" 173 android:layout_height="wrap_content" 174 android:layout_alignParentLeft="true" 175 android:layout_alignParentTop="true" 176 android:focusable="false"/> 177 </LinearLayout> 178 </LinearLayout> 179</LinearLayout>