• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    <TextView
69        android:id="@+id/current_driver_distraction"
70        android:layout_width="match_parent"
71        android:layout_height="wrap_content"
72        android:text="@string/current_driver_distraction"
73        android:padding="@dimen/section_padding"
74        android:textSize="@dimen/info_text_size"
75        android:textAppearance="?android:textAppearanceLarge"/>
76
77    <!-- Section: Available Actions -->
78    <View
79        android:layout_width="match_parent"
80        android:layout_height="1dp"
81        android:padding="@dimen/section_padding"
82        android:layout_marginBottom="10dp"
83        android:background="@android:color/darker_gray"/>
84
85    <TextView
86        android:layout_width="match_parent"
87        android:layout_height="wrap_content"
88        android:text="@string/action_header"
89        android:padding="@dimen/section_padding"
90        android:textSize="@dimen/header_text_size"
91        android:textAppearance="?android:textAppearanceLarge"/>
92
93    <LinearLayout
94        android:layout_width="match_parent"
95        android:layout_height="wrap_content"
96        android:orientation="horizontal">
97        <Button
98            android:id="@+id/toggle_status"
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/disable_uxr"
104            android:textAllCaps="false"
105            android:textSize="@dimen/info_text_size"/>
106        <Button
107            android:id="@+id/show_staged_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_staged_config"
113            android:textAllCaps="false"
114            android:textSize="@dimen/info_text_size"/>
115        <Button
116            android:id="@+id/show_prod_config"
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/show_prod_config"
122            android:textAllCaps="false"
123            android:textSize="@dimen/info_text_size"/>
124        <Button
125            android:id="@+id/toggle_passenger_mode"
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/enable_passenger_mode"
131            android:textAllCaps="false"
132            android:textSize="@dimen/info_text_size"/>
133    </LinearLayout>
134
135    <!-- Section: Save UX Restrictions For Next Boot -->
136    <View
137        android:layout_width="match_parent"
138        android:layout_height="1dp"
139        android:layout_marginTop="@dimen/section_padding"
140        android:layout_marginBottom="10dp"
141        android:background="@android:color/darker_gray"/>
142
143    <TextView
144        android:layout_width="match_parent"
145        android:layout_height="wrap_content"
146        android:text="@string/save_uxr_config_header"
147        android:padding="@dimen/section_padding"
148        android:textSize="@dimen/header_text_size"
149        android:textAppearance="?android:textAppearanceLarge"/>
150
151    <Button
152        android:id="@+id/save_uxr_config"
153        android:layout_width="wrap_content"
154        android:layout_height="wrap_content"
155        android:padding="@dimen/section_padding"
156        android:text="@string/save_uxr_config"
157        android:textSize="@dimen/info_text_size"/>
158</LinearLayout>
159
160
161
162