• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2023 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/nav_bar_background"
24    android:gravity="center"
25    android:orientation="horizontal">
26
27    <LinearLayout
28        android:id="@+id/nav_buttons"
29        android:layout_width="match_parent"
30        android:layout_height="wrap_content"
31        android:layout_marginHorizontal="@dimen/car_nav_buttons_margin"
32        android:layoutDirection="ltr"
33        android:gravity="center">
34
35        <com.android.systemui.car.systembar.CarSystemBarButton
36            android:id="@+id/home"
37            android:contentDescription="@string/system_bar_home_label"
38            style="@style/SystemBarButtonWithDock"
39            systemui:componentNames="com.android.car.carlauncher/.CarLauncher"
40            systemui:highlightWhenSelected="true"
41            systemui:icon="@drawable/car_ic_home"
42            systemui:intent="intent:#Intent;action=android.intent.action.MAIN;category=android.intent.category.HOME;launchFlags=0x14000000;end"/>
43
44        <com.android.systemui.car.systembar.CarSystemBarButton
45            android:id="@+id/passenger_home"
46            android:contentDescription="@string/system_bar_home_label"
47            android:visibility="gone"
48            style="@style/SystemBarButtonWithDock"
49            systemui:highlightWhenSelected="true"
50            systemui:icon="@drawable/car_ic_home"
51            systemui:intent="intent:#Intent;action=android.intent.action.MAIN;category=android.intent.category.HOME;launchFlags=0x14000000;end"/>
52
53        <Space
54            android:layout_width="0dp"
55            android:layout_height="match_parent"
56            android:layout_weight="1"/>
57
58        <com.android.systemui.car.hvac.TemperatureControlView
59            android:id="@+id/driver_hvac"
60            style="@style/TemperatureControlView"
61            systemui:hvacAreaId="49">
62            <include layout="@layout/adjustable_temperature_view"/>
63        </com.android.systemui.car.hvac.TemperatureControlView>
64
65        <Space
66            android:layout_width="0dp"
67            android:layout_height="match_parent"
68            android:layout_weight="1"/>
69
70        <com.android.systemui.car.systembar.AppGridButton
71            android:id="@+id/grid_nav"
72            android:contentDescription="@string/system_bar_applications_label"
73            style="@style/SystemBarButtonWithDock"
74            systemui:componentNames="@string/config_appGridComponentName"
75            systemui:highlightWhenSelected="true"
76            systemui:icon="@drawable/car_ic_apps"
77            systemui:intent="@string/system_bar_app_drawer_intent"
78            systemui:clearBackStack="true"/>
79
80        <com.android.systemui.car.systembar.element.layout.CarSystemBarFrameLayout
81            android:layout_width="wrap_content"
82            android:layout_height="wrap_content"
83            android:layout_marginHorizontal="@dimen/dock_container_margin"
84            systemui:controller="com.android.systemui.car.systembar.DockViewControllerWrapper">
85            <com.android.car.docklib.view.DockView
86                android:id="@+id/dock"
87                android:layout_width="wrap_content"
88                android:layout_height="wrap_content" />
89        </com.android.systemui.car.systembar.element.layout.CarSystemBarFrameLayout>
90
91        <com.android.systemui.car.systembar.AssistantButton
92            android:id="@+id/assistant"
93            android:contentDescription="@string/system_bar_assistant_label"
94            style="@style/SystemBarButtonWithDock"
95            systemui:highlightWhenSelected="true"
96            systemui:icon="@drawable/ic_mic_light"/>
97
98        <Space
99            android:layout_width="0dp"
100            android:layout_height="match_parent"
101            android:layout_weight="1"/>
102
103        <com.android.systemui.car.hvac.TemperatureControlView
104            android:id="@+id/passenger_hvac"
105            style="@style/TemperatureControlView"
106            systemui:hvacAreaId="68">
107            <include layout="@layout/adjustable_temperature_view"/>
108        </com.android.systemui.car.hvac.TemperatureControlView>
109
110        <Space
111            android:layout_width="0dp"
112            android:layout_height="match_parent"
113            android:layout_weight="1"/>
114
115        <com.android.systemui.car.systembar.VolumeButton
116            android:id="@+id/volume"
117            android:contentDescription="@string/system_bar_home_label"
118            style="@style/SystemBarButtonWithDock"
119            systemui:icon="@drawable/car_ic_volume" />
120
121    </LinearLayout>
122
123    <LinearLayout
124        android:id="@+id/lock_screen_nav_buttons"
125        android:layout_width="match_parent"
126        android:layout_height="wrap_content"
127        android:layout_weight="1"
128        android:gravity="center"
129        android:layoutDirection="ltr"
130        android:paddingEnd="@dimen/car_keyline_1"
131        android:paddingStart="@dimen/car_keyline_1"
132        android:visibility="gone"/>
133
134    <LinearLayout
135        android:id="@+id/occlusion_buttons"
136        android:layout_width="match_parent"
137        android:layout_height="wrap_content"
138        android:layout_weight="1"
139        android:gravity="center"
140        android:layoutDirection="ltr"
141        android:paddingEnd="@dimen/car_keyline_1"
142        android:paddingStart="@dimen/car_keyline_1"
143        android:visibility="gone">
144        <com.android.systemui.car.systembar.CarSystemBarButton
145            android:id="@+id/home"
146            android:contentDescription="@string/system_bar_home_label"
147            style="@style/SystemBarButtonWithDock"
148            systemui:componentNames="com.android.car.carlauncher/.CarLauncher"
149            systemui:highlightWhenSelected="true"
150            systemui:icon="@drawable/car_ic_home"
151            systemui:intent="intent:#Intent;action=android.intent.action.MAIN;category=android.intent.category.HOME;launchFlags=0x14000000;end"/>
152    </LinearLayout>
153</com.android.systemui.car.systembar.CarSystemBarView>
154