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/show_uxr_config" 61 android:layout_width="match_parent" 62 android:layout_height="wrap_content" 63 android:text="@string/uxr_config_header" 64 android:padding="@dimen/section_padding" 65 android:textSize="@dimen/info_text_size" 66 android:textAppearance="?android:textAppearanceLarge"/> 67 68 <!-- Section: Available Actions --> 69 <View 70 android:layout_width="match_parent" 71 android:layout_height="1dp" 72 android:padding="@dimen/section_padding" 73 android:layout_marginBottom="10dp" 74 android:background="@android:color/darker_gray"/> 75 76 <TextView 77 android:layout_width="match_parent" 78 android:layout_height="wrap_content" 79 android:text="@string/action_header" 80 android:padding="@dimen/section_padding" 81 android:textSize="@dimen/header_text_size" 82 android:textAppearance="?android:textAppearanceLarge"/> 83 84 <LinearLayout 85 android:layout_width="match_parent" 86 android:layout_height="wrap_content" 87 android:orientation="horizontal"> 88 <Button 89 android:id="@+id/toggle_status" 90 android:layout_width="wrap_content" 91 android:layout_height="wrap_content" 92 android:layout_marginLeft="@dimen/section_padding" 93 android:padding="@dimen/section_padding" 94 android:text="@string/disable_uxr" 95 android:textAllCaps="false" 96 android:textSize="@dimen/info_text_size"/> 97 <Button 98 android:id="@+id/show_staged_config" 99 android:layout_width="wrap_content" 100 android:layout_height="wrap_content" 101 android:layout_marginLeft="@dimen/section_padding" 102 android:padding="@dimen/section_padding" 103 android:text="@string/show_staged_config" 104 android:textAllCaps="false" 105 android:textSize="@dimen/info_text_size"/> 106 <Button 107 android:id="@+id/show_prod_config" 108 android:layout_width="wrap_content" 109 android:layout_height="wrap_content" 110 android:layout_marginLeft="@dimen/section_padding" 111 android:padding="@dimen/section_padding" 112 android:text="@string/show_prod_config" 113 android:textAllCaps="false" 114 android:textSize="@dimen/info_text_size"/> 115 <Button 116 android:id="@+id/toggle_passenger_mode" 117 android:layout_width="wrap_content" 118 android:layout_height="wrap_content" 119 android:layout_marginLeft="@dimen/section_padding" 120 android:padding="@dimen/section_padding" 121 android:text="@string/enable_passenger_mode" 122 android:textAllCaps="false" 123 android:textSize="@dimen/info_text_size"/> 124 </LinearLayout> 125 126 <!-- Section: Save UX Restrictions For Next Boot --> 127 <View 128 android:layout_width="match_parent" 129 android:layout_height="1dp" 130 android:layout_marginTop="@dimen/section_padding" 131 android:layout_marginBottom="10dp" 132 android:background="@android:color/darker_gray"/> 133 134 <TextView 135 android:layout_width="match_parent" 136 android:layout_height="wrap_content" 137 android:text="@string/save_uxr_config_header" 138 android:padding="@dimen/section_padding" 139 android:textSize="@dimen/header_text_size" 140 android:textAppearance="?android:textAppearanceLarge"/> 141 142 <Button 143 android:id="@+id/save_uxr_config" 144 android:layout_width="wrap_content" 145 android:layout_height="wrap_content" 146 android:padding="@dimen/section_padding" 147 android:text="@string/save_uxr_config" 148 android:textSize="@dimen/info_text_size"/> 149</LinearLayout> 150 151 152 153