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 <CheckBox 94 style="@style/Checkbox" 95 android:id="@+id/requireIdlenessCheckbox" 96 android:layout_width="match_parent" 97 android:layout_height="match_parent" 98 android:layout_weight="1" 99 android:checked="true" 100 android:text="@string/checkbox_require_idleness"/> 101 <CheckBox 102 style="@style/Checkbox" 103 android:id="@+id/requirePersistedCheckbox" 104 android:layout_width="match_parent" 105 android:layout_height="match_parent" 106 android:layout_weight="1" 107 android:text="@string/checkbox_require_persisted"/> 108 </LinearLayout> 109 <LinearLayout 110 android:layout_width="match_parent" 111 android:layout_height="match_parent" 112 android:layout_weight="1" 113 android:weightSum="2"> 114 <CheckBox 115 style="@style/Checkbox" 116 android:id="@+id/requireChargingCheckbox" 117 android:layout_width="match_parent" 118 android:layout_height="match_parent" 119 android:layout_weight="1" 120 android:text="@string/checkbox_require_charging"/> 121 </LinearLayout> 122 <LinearLayout 123 android:layout_width="match_parent" 124 android:layout_height="match_parent" 125 android:layout_weight="1"> 126 <TextView 127 style="@style/SpinnerLabel" 128 android:text="@string/spinner_label_network_type"/> 129 <LinearLayout 130 style="@style/SectionContainer" 131 android:layout_width="wrap_content" 132 android:layout_height="match_parent"> 133 <Spinner 134 style="@style/Spinner" 135 android:id="@+id/networkType"/> 136 </LinearLayout> 137 </LinearLayout> 138 <LinearLayout 139 android:layout_width="match_parent" 140 android:layout_height="match_parent" 141 android:layout_weight="1" 142 android:orientation="horizontal"> 143 <TextView 144 style="@style/SpinnerLabel" 145 android:text="@string/spinner_label_job_duration"/> 146 <LinearLayout 147 style="@style/SectionContainer" 148 android:layout_width="wrap_content" 149 android:layout_height="match_parent"> 150 <Spinner 151 style="@style/Spinner" 152 android:id="@+id/jobDuration"/> 153 </LinearLayout> 154 </LinearLayout> 155 <Button 156 style="@style/Button" 157 android:id="@+id/addJobBtn" 158 android:layout_width="match_parent" 159 android:layout_height="match_parent" 160 android:text="@string/button_schedule_job" 161 android:layout_weight="1"/> 162 </LinearLayout> 163 <LinearLayout 164 style="@style/SectionContainer" 165 android:layout_width="wrap_content" 166 android:layout_height="match_parent" 167 android:orientation="vertical"> 168 <TextView 169 style="@style/SectionHeader" 170 android:text="@string/section_header_jobs_list"/> 171 <ListView 172 android:id="@+id/jobsListView" 173 android:layout_width="match_parent" 174 android:layout_height="wrap_content" 175 android:layout_alignParentLeft="true" 176 android:layout_alignParentTop="true" 177 android:focusable="false"/> 178 </LinearLayout> 179 </LinearLayout> 180</LinearLayout> 181