• 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.AdjustableTemperatureView
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            systemui:hvacTempFormat="%.0f\u00B0" />
40
41        <LinearLayout
42            android:layout_width="wrap_content"
43            android:layout_height="match_parent"
44            android:layout_centerInParent="true"
45            android:layout_weight="1"
46            android:gravity="center"
47            android:layoutDirection="ltr"
48            android:paddingEnd="@dimen/system_bar_button_group_padding"
49            android:paddingStart="@dimen/system_bar_button_group_padding">
50
51            <Space
52                android:layout_width="0dp"
53                android:layout_height="match_parent"
54                android:layout_weight="1"/>
55
56            <com.android.systemui.car.systembar.CarSystemBarButton
57                android:id="@+id/home"
58                style="@style/SystemBarButton"
59                systemui:componentNames="com.android.car.carlauncher/.CarLauncher"
60                systemui:highlightWhenSelected="true"
61                systemui:icon="@drawable/car_ic_home"
62                systemui:intent="intent:#Intent;action=android.intent.action.MAIN;category=android.intent.category.HOME;launchFlags=0x14000000;end"/>
63
64            <com.android.systemui.car.systembar.CarSystemBarButton
65                android:id="@+id/phone_nav"
66                style="@style/SystemBarButton"
67                systemui:highlightWhenSelected="true"
68                systemui:icon="@drawable/car_ic_phone"
69                systemui:intent="intent:#Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;package=com.android.car.dialer;launchFlags=0x10000000;end"
70                systemui:packages="com.android.car.dialer"
71                systemui:clearBackStack="true"/>
72
73            <com.android.systemui.car.systembar.CarSystemBarButton
74                android:id="@+id/grid_nav"
75                style="@style/SystemBarButton"
76                systemui:componentNames="@string/config_appGridComponentName"
77                systemui:highlightWhenSelected="true"
78                systemui:icon="@drawable/car_ic_apps"
79                systemui:intent="intent:#Intent;action=com.android.car.carlauncher.ACTION_APP_GRID;package=com.android.car.carlauncher;launchFlags=0x24000000;end"
80                systemui:clearBackStack="true"/>
81
82            <com.android.systemui.car.systembar.CarSystemBarButton
83                android:id="@+id/hvac"
84                style="@style/SystemBarButton"
85                systemui:highlightWhenSelected="true"
86                systemui:icon="@drawable/car_ic_hvac"
87                systemui:intent="intent:#Intent;action=android.car.intent.action.TOGGLE_HVAC_CONTROLS;end"
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.AdjustableTemperatureView
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            systemui:hvacTempFormat="%.0f\u00B0" />
111    </RelativeLayout>
112
113    <LinearLayout
114        android:id="@+id/lock_screen_nav_buttons"
115        android:layout_width="match_parent"
116        android:layout_height="wrap_content"
117        android:layout_weight="1"
118        android:gravity="center"
119        android:layoutDirection="ltr"
120        android:paddingEnd="@dimen/car_keyline_1"
121        android:paddingStart="@dimen/car_keyline_1"
122        android:visibility="gone"
123    />
124
125    <LinearLayout
126        android:id="@+id/occlusion_buttons"
127        android:layout_width="match_parent"
128        android:layout_height="wrap_content"
129        android:layout_weight="1"
130        android:gravity="center"
131        android:layoutDirection="ltr"
132        android:paddingEnd="@dimen/car_keyline_1"
133        android:paddingStart="@dimen/car_keyline_1"
134        android:visibility="gone"
135    >
136        <com.android.systemui.car.systembar.CarSystemBarButton
137            android:id="@+id/home"
138            style="@style/SystemBarButton"
139            systemui:componentNames="com.android.car.carlauncher/.CarLauncher"
140            systemui:highlightWhenSelected="true"
141            systemui:icon="@drawable/car_ic_home"
142            systemui:intent="intent:#Intent;action=android.intent.action.MAIN;category=android.intent.category.HOME;launchFlags=0x14000000;end"/>
143    </LinearLayout>
144</com.android.systemui.car.systembar.CarSystemBarView>