1<?xml version="1.0" encoding="utf-8"?>
2<!--
3**
4** Copyright 2018, The Android Open Source Project
5**
6** Licensed under the Apache License, Version 2.0 (the "License");
7** you may not use this file except in compliance with the License.
8** You may obtain a copy of the License at
9**
10**     http://www.apache.org/licenses/LICENSE-2.0
11**
12** Unless required by applicable law or agreed to in writing, software
13** distributed under the License is distributed on an "AS IS" BASIS,
14** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15** See the License for the specific language governing permissions and
16** limitations under the License.
17*/
18-->
19
20<com.android.systemui.car.systembar.CarSystemBarView
21    xmlns:android="http://schemas.android.com/apk/res/android"
22    xmlns:systemui="http://schemas.android.com/apk/res-auto"
23    android:layout_height="match_parent"
24    android:layout_width="match_parent"
25    android:orientation="vertical"
26    android:background="@drawable/system_bar_background">
27
28    <!-- phone.SystemBarView has rot0 and rot90 but we expect the car head unit to have a fixed
29         rotation so skip this level of the hierarchy.
30    -->
31    <LinearLayout
32        android:layout_height="match_parent"
33        android:layout_width="match_parent"
34        android:id="@+id/nav_buttons"
35        android:orientation="vertical"
36        android:gravity="top"
37        android:paddingTop="30dp"
38        android:layout_weight="1"
39        android:animateLayoutChanges="true">
40
41        <com.android.systemui.car.systembar.CarSystemBarButton
42            android:id="@+id/home"
43            android:layout_height="wrap_content"
44            android:layout_width="match_parent"
45            systemui:intent="intent:#Intent;action=android.intent.action.MAIN;category=android.intent.category.HOME;launchFlags=0x14000000;end"
46            android:src="@drawable/car_ic_overview"
47            android:background="?android:attr/selectableItemBackground"
48            android:paddingTop="30dp"
49            android:paddingBottom="30dp"
50        />
51
52        <com.android.systemui.car.systembar.CarSystemBarButton
53            android:id="@+id/grid"
54            android:layout_height="wrap_content"
55            android:layout_width="match_parent"
56            systemui:intent="intent:#Intent;component=com.android.car.home/.AppGridActivity;launchFlags=0x14000000;end"
57            systemui:longIntent="intent:#Intent;action=android.intent.action.MAIN;category=android.intent.category.HOME;launchFlags=0x14000000;end"
58            android:src="@drawable/car_ic_apps"
59            android:background="?android:attr/selectableItemBackground"
60            android:paddingTop="30dp"
61            android:paddingBottom="30dp"
62        />
63
64        <com.android.systemui.car.systembar.HvacButton
65            android:id="@+id/hvac"
66            android:layout_height="wrap_content"
67            android:layout_width="match_parent"
68            systemui:broadcast="true"
69            android:src="@drawable/car_ic_hvac"
70            android:background="?android:attr/selectableItemBackground"
71            android:paddingTop="30dp"
72            android:paddingBottom="30dp"
73        />
74
75    </LinearLayout>
76
77    <LinearLayout
78        android:layout_width="match_parent"
79        android:layout_height="match_parent"
80        android:layout_weight="1"
81        android:gravity="bottom"
82        android:orientation="vertical">
83
84        <com.android.systemui.statusbar.AlphaOptimizedImageView
85            android:id="@+id/note"
86            android:layout_height="wrap_content"
87            android:layout_width="match_parent"
88            android:src="@drawable/car_ic_notification"
89            android:background="?android:attr/selectableItemBackground"
90            android:paddingTop="20dp"
91            android:paddingBottom="20dp"
92            android:alpha="0.7"
93        />
94
95
96        <com.android.systemui.statusbar.policy.Clock
97            android:id="@+id/clock"
98            android:textAppearance="@style/TextAppearance.StatusBar.Clock"
99            android:layout_height="wrap_content"
100            android:layout_width="match_parent"
101            android:singleLine="true"
102            android:paddingStart="@dimen/status_bar_clock_starting_padding"
103            android:paddingEnd="@dimen/status_bar_clock_end_padding"
104            android:gravity="center_horizontal"
105            android:paddingBottom="20dp"
106        />
107
108        <Space
109            android:layout_height="10dp"
110            android:layout_width="match_parent"/>
111
112    </LinearLayout>
113
114</com.android.systemui.car.systembar.CarSystemBarView>
115