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.CarSystemBarButton 65 android:id="@+id/hvac" 66 android:layout_height="wrap_content" 67 android:layout_width="match_parent" 68 systemui:intent="intent:#Intent;action=android.car.intent.action.TOGGLE_HVAC_CONTROLS;end" 69 systemui:broadcast="true" 70 android:src="@drawable/car_ic_hvac" 71 android:background="?android:attr/selectableItemBackground" 72 android:paddingTop="30dp" 73 android:paddingBottom="30dp" 74 /> 75 76 </LinearLayout> 77 78 <LinearLayout 79 android:layout_width="match_parent" 80 android:layout_height="match_parent" 81 android:layout_weight="1" 82 android:gravity="bottom" 83 android:orientation="vertical"> 84 85 <com.android.systemui.statusbar.AlphaOptimizedImageView 86 android:id="@+id/note" 87 android:layout_height="wrap_content" 88 android:layout_width="match_parent" 89 android:src="@drawable/car_ic_notification" 90 android:background="?android:attr/selectableItemBackground" 91 android:paddingTop="20dp" 92 android:paddingBottom="20dp" 93 android:alpha="0.7" 94 /> 95 96 97 <com.android.systemui.statusbar.policy.Clock 98 android:id="@+id/clock" 99 android:textAppearance="@style/TextAppearance.StatusBar.Clock" 100 android:layout_height="wrap_content" 101 android:layout_width="match_parent" 102 android:singleLine="true" 103 android:paddingStart="@dimen/status_bar_clock_starting_padding" 104 android:paddingEnd="@dimen/status_bar_clock_end_padding" 105 android:gravity="center_horizontal" 106 android:paddingBottom="20dp" 107 /> 108 109 <Space 110 android:layout_height="10dp" 111 android:layout_width="match_parent"/> 112 113 </LinearLayout> 114 115</com.android.systemui.car.systembar.CarSystemBarView> 116