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 17 xmlns:android="http://schemas.android.com/apk/res/android" 18 android:orientation="vertical" 19 android:layout_width="match_parent" 20 android:layout_height="match_parent"> 21 <!-- Section: Current Status --> 22 <TextView 23 android:layout_width="match_parent" 24 android:layout_height="wrap_content" 25 android:text="@string/status_header" 26 android:layout_gravity="center" 27 android:padding="@dimen/section_padding" 28 android:textSize="@dimen/header_text_size" 29 android:textAppearance="?android:textAppearanceLarge"/> 30 31 <TextView 32 android:id="@+id/driving_state" 33 android:layout_width="match_parent" 34 android:layout_height="wrap_content" 35 android:text="@string/driving_state" 36 android:textSize="@dimen/info_text_size" 37 android:layout_gravity="center" 38 android:padding="@dimen/section_padding" 39 android:textAppearance="?android:textAppearanceLarge"/> 40 41 <TextView 42 android:id="@+id/do_status" 43 android:layout_width="match_parent" 44 android:layout_height="wrap_content" 45 android:text="@string/is_do_reqd" 46 android:textSize="@dimen/info_text_size" 47 android:padding="@dimen/section_padding" 48 android:textAppearance="?android:textAppearanceLarge"/> 49 50 <TextView 51 android:id="@+id/uxr_status" 52 android:layout_width="match_parent" 53 android:layout_height="wrap_content" 54 android:text="@string/active_restrictions" 55 android:padding="@dimen/section_padding" 56 android:textSize="@dimen/info_text_size" 57 android:textAppearance="?android:textAppearanceLarge"/> 58 59 <TextView 60 android:id="@+id/uxr_restriction_parameters_string_length" 61 android:layout_width="match_parent" 62 android:layout_height="wrap_content" 63 android:text="@string/active_restriction_parameters_string_length" 64 android:padding="@dimen/section_padding" 65 android:textSize="@dimen/info_text_size" 66 android:textAppearance="?android:textAppearanceLarge"/> 67 68 <TextView 69 android:id="@+id/uxr_restriction_parameters_content_depth" 70 android:layout_width="match_parent" 71 android:layout_height="wrap_content" 72 android:text="@string/active_restriction_parameters_content_depth" 73 android:padding="@dimen/section_padding" 74 android:textSize="@dimen/info_text_size" 75 android:textAppearance="?android:textAppearanceLarge"/> 76 77 <TextView 78 android:id="@+id/uxr_restriction_parameters_cumulative_content" 79 android:layout_width="match_parent" 80 android:layout_height="wrap_content" 81 android:text="@string/active_restriction_parameters_cumulative_content" 82 android:padding="@dimen/section_padding" 83 android:textSize="@dimen/info_text_size" 84 android:textAppearance="?android:textAppearanceLarge"/> 85 86 <TextView 87 android:id="@+id/show_uxr_config" 88 android:layout_width="match_parent" 89 android:layout_height="wrap_content" 90 android:text="@string/uxr_config_header" 91 android:padding="@dimen/section_padding" 92 android:textSize="@dimen/info_text_size" 93 android:textAppearance="?android:textAppearanceLarge"/> 94 95 <TextView 96 android:id="@+id/current_driver_distraction" 97 android:layout_width="match_parent" 98 android:layout_height="wrap_content" 99 android:text="@string/current_driver_distraction" 100 android:padding="@dimen/section_padding" 101 android:textSize="@dimen/info_text_size" 102 android:textAppearance="?android:textAppearanceLarge"/> 103 104 <!-- Section: Available Actions --> 105 <View 106 android:layout_width="match_parent" 107 android:layout_height="1dp" 108 android:padding="@dimen/section_padding" 109 android:layout_marginBottom="10dp" 110 android:background="@android:color/darker_gray"/> 111 112 <TextView 113 android:layout_width="match_parent" 114 android:layout_height="wrap_content" 115 android:text="@string/action_header" 116 android:padding="@dimen/section_padding" 117 android:textSize="@dimen/header_text_size" 118 android:textAppearance="?android:textAppearanceLarge"/> 119 120 <LinearLayout 121 android:layout_width="match_parent" 122 android:layout_height="wrap_content" 123 android:orientation="horizontal"> 124 <Button 125 android:id="@+id/toggle_status" 126 android:layout_width="wrap_content" 127 android:layout_height="wrap_content" 128 android:layout_marginLeft="@dimen/section_padding" 129 android:padding="@dimen/section_padding" 130 android:text="@string/disable_uxr" 131 android:textAllCaps="false" 132 android:textSize="@dimen/info_text_size"/> 133 <Button 134 android:id="@+id/show_staged_config" 135 android:layout_width="wrap_content" 136 android:layout_height="wrap_content" 137 android:layout_marginLeft="@dimen/section_padding" 138 android:padding="@dimen/section_padding" 139 android:text="@string/show_staged_config" 140 android:textAllCaps="false" 141 android:textSize="@dimen/info_text_size"/> 142 <Button 143 android:id="@+id/show_prod_config" 144 android:layout_width="wrap_content" 145 android:layout_height="wrap_content" 146 android:layout_marginLeft="@dimen/section_padding" 147 android:padding="@dimen/section_padding" 148 android:text="@string/show_prod_config" 149 android:textAllCaps="false" 150 android:textSize="@dimen/info_text_size"/> 151 <Button 152 android:id="@+id/toggle_passenger_mode" 153 android:layout_width="wrap_content" 154 android:layout_height="wrap_content" 155 android:layout_marginLeft="@dimen/section_padding" 156 android:padding="@dimen/section_padding" 157 android:text="@string/enable_passenger_mode" 158 android:textAllCaps="false" 159 android:textSize="@dimen/info_text_size"/> 160 </LinearLayout> 161 162 <!-- Section: Save UX Restrictions For Next Boot --> 163 <View 164 android:layout_width="match_parent" 165 android:layout_height="1dp" 166 android:layout_marginTop="@dimen/section_padding" 167 android:layout_marginBottom="10dp" 168 android:background="@android:color/darker_gray"/> 169 170 <TextView 171 android:layout_width="match_parent" 172 android:layout_height="wrap_content" 173 android:text="@string/save_uxr_config_header" 174 android:padding="@dimen/section_padding" 175 android:textSize="@dimen/header_text_size" 176 android:textAppearance="?android:textAppearanceLarge"/> 177 178 <Button 179 android:id="@+id/save_uxr_config" 180 android:layout_width="wrap_content" 181 android:layout_height="wrap_content" 182 android:padding="@dimen/section_padding" 183 android:text="@string/save_uxr_config" 184 android:textSize="@dimen/info_text_size"/> 185</LinearLayout> 186 187 188 189