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<com.android.systemui.car.systembar.CarSystemBarView 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:systemui="http://schemas.android.com/apk/res-auto" 20 android:layout_height="match_parent" 21 android:layout_width="match_parent" 22 android:background="@drawable/nav_bar_background" 23 android:weightSum="3" 24 android:orientation="vertical"> 25 26 <LinearLayout 27 android:id="@+id/status_icons" 28 android:layout_width="match_parent" 29 android:layout_height="0dp" 30 android:gravity="top|center_horizontal" 31 android:paddingTop="20dp" 32 android:layout_weight="1" 33 android:orientation="vertical"> 34 <FrameLayout 35 android:id="@+id/clock_container" 36 android:layout_width="match_parent" 37 android:layout_height="wrap_content"> 38 <com.android.systemui.statusbar.policy.Clock 39 android:id="@+id/clock" 40 android:layout_width="wrap_content" 41 android:layout_height="wrap_content" 42 android:layout_gravity="center" 43 android:elevation="5dp" 44 android:singleLine="true" 45 /> 46 </FrameLayout> 47 <include layout="@layout/qc_status_icons_vertical" 48 android:layout_width="wrap_content" 49 android:layout_height="match_parent" /> 50 </LinearLayout> 51 52 <LinearLayout 53 android:id="@+id/nav_buttons" 54 android:layout_width="match_parent" 55 android:layout_height="0dp" 56 android:gravity="center" 57 android:layoutDirection="ltr" 58 android:layout_weight="1" 59 android:orientation="vertical"> 60 61 <com.android.systemui.car.systembar.CarSystemBarButton 62 android:id="@+id/maps_nav" 63 android:contentDescription="@string/system_bar_maps_label" 64 style="@style/SystemBarButton.Vertical" 65 systemui:categories="android.intent.category.APP_MAPS" 66 systemui:icon="@drawable/car_ic_navigation" 67 systemui:intent="intent:#Intent;action=android.intent.action.MAIN;category=android.intent.category.APP_MAPS;launchFlags=0x14000000;end" 68 systemui:selectedIcon="@drawable/car_ic_navigation_selected" 69 systemui:highlightWhenSelected="true"/> 70 71 <com.android.systemui.car.systembar.CarSystemBarButton 72 android:id="@+id/music_nav" 73 android:contentDescription="@string/system_bar_media_label" 74 style="@style/SystemBarButton.Vertical" 75 systemui:categories="android.intent.category.APP_MUSIC" 76 systemui:icon="@drawable/car_ic_music" 77 systemui:intent="intent:#Intent;action=android.car.intent.action.MEDIA_TEMPLATE;launchFlags=0x10000000;end" 78 systemui:packages="com.android.car.media" 79 systemui:selectedIcon="@drawable/car_ic_music_selected" 80 systemui:highlightWhenSelected="true"/> 81 82 <com.android.systemui.car.systembar.CarSystemBarButton 83 android:id="@+id/phone_nav" 84 android:contentDescription="@string/system_bar_phone_label" 85 style="@style/SystemBarButton.Vertical" 86 systemui:icon="@drawable/car_ic_phone" 87 systemui:intent="intent:#Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;package=com.android.car.dialer;launchFlags=0x10000000;end" 88 systemui:packages="com.android.car.dialer" 89 systemui:selectedIcon="@drawable/car_ic_phone_selected" 90 systemui:highlightWhenSelected="true" 91 systemui:disableForLockTaskModeLocked="true"/> 92 </LinearLayout> 93 <LinearLayout 94 android:id="@+id/extra_nav_buttons" 95 android:layout_width="match_parent" 96 android:layout_height="0dp" 97 android:gravity="bottom|center_horizontal" 98 android:layout_weight="1" 99 android:layoutDirection="ltr" 100 android:orientation="vertical"> 101 <com.android.systemui.car.systembar.CarSystemBarButton 102 android:id="@+id/home" 103 android:contentDescription="@string/system_bar_home_label" 104 style="@style/SystemBarButton.Vertical" 105 systemui:componentNames="com.android.car.carlauncher/.CarLauncher" 106 systemui:icon="@drawable/car_ic_overview" 107 systemui:intent="intent:#Intent;action=android.intent.action.MAIN;category=android.intent.category.HOME;launchFlags=0x14000000;end" 108 systemui:selectedIcon="@drawable/car_ic_overview_selected" 109 systemui:highlightWhenSelected="true" 110 systemui:systemBarDisableFlags="home" 111 systemui:controller="com.android.systemui.car.systembar.HomeButtonController"/> 112 113 <com.android.systemui.car.systembar.CarSystemBarButton 114 android:id="@+id/grid_nav" 115 android:contentDescription="@string/system_bar_applications_label" 116 style="@style/SystemBarButton.Vertical" 117 systemui:componentNames="@string/config_appGridComponentName" 118 systemui:icon="@drawable/car_ic_apps" 119 systemui:intent="intent:#Intent;action=com.android.car.carlauncher.ACTION_APP_GRID;package=com.android.car.carlauncher;launchFlags=0x24000000;end" 120 systemui:selectedIcon="@drawable/car_ic_apps_selected" 121 systemui:highlightWhenSelected="true" 122 systemui:systemBarDisableFlags="home"/> 123 </LinearLayout> 124</com.android.systemui.car.systembar.CarSystemBarView> 125