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                style="@style/SystemBarButton"
60                systemui:componentNames="com.android.car.carlauncher/.CarLauncher"
61                systemui:highlightWhenSelected="true"
62                systemui:icon="@drawable/car_ic_home"
63                systemui:intent="intent:#Intent;action=android.intent.action.MAIN;category=android.intent.category.HOME;launchFlags=0x14000000;end"/>
64
65            <com.android.systemui.car.systembar.CarSystemBarButton
66                android:id="@+id/phone_nav"
67                style="@style/SystemBarButton"
68                systemui:highlightWhenSelected="true"
69                systemui:icon="@drawable/car_ic_phone"
70                systemui:intent="intent:#Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;package=com.android.car.dialer;launchFlags=0x10000000;end"
71                systemui:packages="com.android.car.dialer"
72                systemui:clearBackStack="true"/>
73
74            <com.android.systemui.car.systembar.CarSystemBarButton
75                android:id="@+id/grid_nav"
76                style="@style/SystemBarButton"
77                systemui:componentNames="@string/config_appGridComponentName"
78                systemui:highlightWhenSelected="true"
79                systemui:icon="@drawable/car_ic_apps"
80                systemui:intent="intent:#Intent;action=com.android.car.carlauncher.ACTION_APP_GRID;package=com.android.car.carlauncher;launchFlags=0x24000000;end"
81                systemui:clearBackStack="true"/>
82
83            <com.android.systemui.car.systembar.HvacButton
84                android:id="@+id/hvac"
85                style="@style/SystemBarButton"
86                systemui:highlightWhenSelected="true"
87                systemui:icon="@drawable/car_ic_hvac"
88                systemui:broadcast="true"/>
89
90            <com.android.systemui.car.systembar.CarSystemBarButton
91                android:id="@+id/notifications"
92                style="@style/SystemBarButton"
93                systemui:highlightWhenSelected="true"
94                systemui:icon="@drawable/car_ic_notification"
95                systemui:longIntent="intent:#Intent;component=com.android.car.bugreport/.BugReportActivity;end"/>
96
97            <Space
98                android:layout_width="0dp"
99                android:layout_height="match_parent"
100                android:layout_weight="1"/>
101        </LinearLayout>
102
103        <com.android.systemui.car.hvac.TemperatureControlView
104            android:id="@+id/passenger_hvac"
105            android:layout_width="wrap_content"
106            android:layout_height="match_parent"
107            android:layout_alignParentEnd="true"
108            android:gravity="center_vertical"
109            systemui:hvacAreaId="68">
110            <include layout="@layout/adjustable_temperature_view"/>
111        </com.android.systemui.car.hvac.TemperatureControlView>
112
113    </RelativeLayout>
114
115    <LinearLayout
116        android:id="@+id/lock_screen_nav_buttons"
117        android:layout_width="match_parent"
118        android:layout_height="wrap_content"
119        android:layout_weight="1"
120        android:gravity="center"
121        android:layoutDirection="ltr"
122        android:paddingEnd="@dimen/car_keyline_1"
123        android:paddingStart="@dimen/car_keyline_1"
124        android:visibility="gone"
125    />
126
127    <LinearLayout
128        android:id="@+id/occlusion_buttons"
129        android:layout_width="match_parent"
130        android:layout_height="wrap_content"
131        android:layout_weight="1"
132        android:gravity="center"
133        android:layoutDirection="ltr"
134        android:paddingEnd="@dimen/car_keyline_1"
135        android:paddingStart="@dimen/car_keyline_1"
136        android:visibility="gone"
137    >
138        <com.android.systemui.car.systembar.CarSystemBarButton
139            android:id="@+id/home"
140            style="@style/SystemBarButton"
141            systemui:componentNames="com.android.car.carlauncher/.CarLauncher"
142            systemui:highlightWhenSelected="true"
143            systemui:icon="@drawable/car_ic_home"
144            systemui:intent="intent:#Intent;action=android.intent.action.MAIN;category=android.intent.category.HOME;launchFlags=0x14000000;end"/>
145    </LinearLayout>
146</com.android.systemui.car.systembar.CarSystemBarView>