• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2020 The Android Open Source Project.
4  ~
5  ~ Licensed under the Apache License, Version 2.0 (the "License");
6  ~ you may not use this file except in compliance with the License.
7  ~ You may obtain a copy of the License at
8  ~
9  ~      http://www.apache.org/licenses/LICENSE-2.0
10  ~
11  ~ Unless required by applicable law or agreed to in writing, software
12  ~ distributed under the License is distributed on an "AS IS" BASIS,
13  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  ~ See the License for the specific language governing permissions and
15  ~ limitations under the License.
16  -->
17
18<com.android.systemui.car.systembar.CarSystemBarView
19    xmlns:android="http://schemas.android.com/apk/res/android"
20    xmlns:systemui="http://schemas.android.com/apk/res-auto"
21    android:layout_width="match_parent"
22    android:layout_height="match_parent"
23    android:background="@drawable/system_bar_background"
24    android:gravity="center"
25    android:orientation="horizontal">
26
27    <RelativeLayout
28        android:id="@+id/nav_buttons"
29        android:layout_width="match_parent"
30        android:layout_height="wrap_content"
31        android:layoutDirection="ltr">
32
33        <com.android.systemui.car.hvac.TemperatureControlView
34            android:id="@+id/driver_hvac"
35            android:layout_width="wrap_content"
36            android:layout_height="match_parent"
37            android:gravity="center_vertical"
38            systemui:hvacAreaId="49">
39            <include layout="@layout/adjustable_temperature_view"/>
40        </com.android.systemui.car.hvac.TemperatureControlView>
41
42        <LinearLayout
43            android:layout_width="wrap_content"
44            android:layout_height="match_parent"
45            android:layout_centerInParent="true"
46            android:layout_weight="1"
47            android:gravity="center"
48            android:layoutDirection="ltr"
49            android:paddingEnd="@dimen/system_bar_button_group_padding"
50            android:paddingStart="@dimen/system_bar_button_group_padding">
51
52            <Space
53                android:layout_width="0dp"
54                android:layout_height="match_parent"
55                android:layout_weight="1"/>
56
57            <com.android.systemui.car.systembar.CarSystemBarButton
58                android:id="@+id/home"
59                android:contentDescription="@string/system_bar_home_label"
60                style="@style/SystemBarButton"
61                systemui:componentNames="com.android.car.carlauncher/.CarLauncher"
62                systemui:highlightWhenSelected="true"
63                systemui:icon="@drawable/car_ic_home"
64                systemui:intent="intent:#Intent;action=android.intent.action.MAIN;category=android.intent.category.HOME;launchFlags=0x14000000;end"/>
65
66            <com.android.systemui.car.systembar.CarSystemBarButton
67                android:id="@+id/phone_nav"
68                android:contentDescription="@string/system_bar_phone_label"
69                style="@style/SystemBarButton"
70                systemui:highlightWhenSelected="true"
71                systemui:icon="@drawable/car_ic_phone"
72                systemui:intent="intent:#Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;package=com.android.car.dialer;launchFlags=0x10000000;end"
73                systemui:packages="com.android.car.dialer"
74                systemui:clearBackStack="true"/>
75
76            <com.android.systemui.car.systembar.CarSystemBarButton
77                android:id="@+id/grid_nav"
78                android:contentDescription="@string/system_bar_applications_label"
79                style="@style/SystemBarButton"
80                systemui:componentNames="@string/config_appGridComponentName"
81                systemui:highlightWhenSelected="true"
82                systemui:icon="@drawable/car_ic_apps"
83                systemui:intent="intent:#Intent;action=com.android.car.carlauncher.ACTION_APP_GRID;package=com.android.car.carlauncher;launchFlags=0x24000000;end"
84                systemui:clearBackStack="true"/>
85
86            <com.android.systemui.car.systembar.HvacButton
87                android:id="@+id/hvac"
88                android:contentDescription="@string/system_bar_climate_control_label"
89                style="@style/SystemBarButton"
90                systemui:highlightWhenSelected="true"
91                systemui:icon="@drawable/car_ic_hvac"
92                systemui:broadcast="true"/>
93
94            <com.android.systemui.car.systembar.CarSystemBarButton
95                android:id="@+id/notifications"
96                android:contentDescription="@string/system_bar_notifications_label"
97                style="@style/SystemBarButton"
98                systemui:highlightWhenSelected="true"
99                systemui:icon="@drawable/car_ic_notification"
100                systemui:longIntent="intent:#Intent;action=com.android.car.bugreport.action.START_AUDIO_FIRST;component=com.android.car.bugreport/.BugReportActivity;end"/>
101
102            <Space
103                android:layout_width="0dp"
104                android:layout_height="match_parent"
105                android:layout_weight="1"/>
106        </LinearLayout>
107
108        <com.android.systemui.car.hvac.TemperatureControlView
109            android:id="@+id/passenger_hvac"
110            android:layout_width="wrap_content"
111            android:layout_height="match_parent"
112            android:layout_alignParentEnd="true"
113            android:gravity="center_vertical"
114            systemui:hvacAreaId="68">
115            <include layout="@layout/adjustable_temperature_view"/>
116        </com.android.systemui.car.hvac.TemperatureControlView>
117
118    </RelativeLayout>
119
120    <LinearLayout
121        android:id="@+id/lock_screen_nav_buttons"
122        android:layout_width="match_parent"
123        android:layout_height="wrap_content"
124        android:layout_weight="1"
125        android:gravity="center"
126        android:layoutDirection="ltr"
127        android:paddingEnd="@dimen/car_keyline_1"
128        android:paddingStart="@dimen/car_keyline_1"
129        android:visibility="gone"/>
130
131    <LinearLayout
132        android:id="@+id/occlusion_buttons"
133        android:layout_width="match_parent"
134        android:layout_height="wrap_content"
135        android:layout_weight="1"
136        android:gravity="center"
137        android:layoutDirection="ltr"
138        android:paddingEnd="@dimen/car_keyline_1"
139        android:paddingStart="@dimen/car_keyline_1"
140        android:visibility="gone">
141        <com.android.systemui.car.systembar.CarSystemBarButton
142            android:id="@+id/home"
143            android:contentDescription="@string/system_bar_home_label"
144            style="@style/SystemBarButton"
145            systemui:componentNames="com.android.car.carlauncher/.CarLauncher"
146            systemui:highlightWhenSelected="true"
147            systemui:icon="@drawable/car_ic_home"
148            systemui:intent="intent:#Intent;action=android.intent.action.MAIN;category=android.intent.category.HOME;launchFlags=0x14000000;end"/>
149    </LinearLayout>
150</com.android.systemui.car.systembar.CarSystemBarView>
151