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