added overlay/packages/apps/Car/SystemUI/res/layout/car_bottom_system_bar.xml
parent
2daa52bfae
commit
49ae00aa07
|
@ -1,7 +1,7 @@
|
|||
PRODUCT_MAKEFILES := $(LOCAL_DIR)/rpi4_car.mk
|
||||
PRODUCT_MAKEFILES := \
|
||||
$(LOCAL_DIR)/rpi4_car.mk \
|
||||
|
||||
COMMON_LUNCH_CHOICES := \
|
||||
rpi4_car-eng \
|
||||
rpi4_car-userdebug \
|
||||
rpi4_car-user \
|
||||
|
||||
|
|
|
@ -0,0 +1,131 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
~ Copyright (C) 2020 The Android Open Source Project.
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<com.android.systemui.car.systembar.CarSystemBarView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:systemui="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@drawable/system_bar_background"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/nav_buttons"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layoutDirection="ltr">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_centerInParent="true"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:layoutDirection="ltr"
|
||||
android:paddingEnd="@dimen/system_bar_button_group_padding"
|
||||
android:paddingStart="@dimen/system_bar_button_group_padding">
|
||||
|
||||
<Space
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"/>
|
||||
|
||||
<com.android.systemui.car.systembar.CarSystemBarButton
|
||||
android:id="@+id/home"
|
||||
android:contentDescription="@string/system_bar_home_label"
|
||||
style="@style/SystemBarButton"
|
||||
systemui:componentNames="com.android.car.carlauncher/.CarLauncher"
|
||||
systemui:highlightWhenSelected="true"
|
||||
systemui:icon="@drawable/car_ic_home"
|
||||
systemui:intent="intent:#Intent;action=android.intent.action.MAIN;category=android.intent.category.HOME;launchFlags=0x14000000;end"/>
|
||||
|
||||
<com.android.systemui.car.systembar.CarSystemBarButton
|
||||
android:id="@+id/phone_nav"
|
||||
android:contentDescription="@string/system_bar_phone_label"
|
||||
style="@style/SystemBarButton"
|
||||
systemui:highlightWhenSelected="true"
|
||||
systemui:icon="@drawable/car_ic_phone"
|
||||
systemui:intent="intent:#Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;package=com.android.car.dialer;launchFlags=0x10000000;end"
|
||||
systemui:packages="com.android.car.dialer"
|
||||
systemui:clearBackStack="true"/>
|
||||
|
||||
<com.android.systemui.car.systembar.CarSystemBarButton
|
||||
android:id="@+id/grid_nav"
|
||||
android:contentDescription="@string/system_bar_applications_label"
|
||||
style="@style/SystemBarButton"
|
||||
systemui:componentNames="@string/config_appGridComponentName"
|
||||
systemui:highlightWhenSelected="true"
|
||||
systemui:icon="@drawable/car_ic_apps"
|
||||
systemui:intent="intent:#Intent;action=com.android.car.carlauncher.ACTION_APP_GRID;package=com.android.car.carlauncher;launchFlags=0x24000000;end"
|
||||
systemui:clearBackStack="true"/>
|
||||
|
||||
<com.android.systemui.car.systembar.HvacButton
|
||||
android:id="@+id/hvac"
|
||||
android:contentDescription="@string/system_bar_climate_control_label"
|
||||
style="@style/SystemBarButton"
|
||||
systemui:highlightWhenSelected="true"
|
||||
systemui:icon="@drawable/car_ic_hvac"
|
||||
systemui:broadcast="true"/>
|
||||
|
||||
<com.android.systemui.car.systembar.CarSystemBarButton
|
||||
android:id="@+id/notifications"
|
||||
android:contentDescription="@string/system_bar_notifications_label"
|
||||
style="@style/SystemBarButton"
|
||||
systemui:highlightWhenSelected="true"
|
||||
systemui:icon="@drawable/car_ic_notification"
|
||||
systemui:longIntent="intent:#Intent;action=com.android.car.bugreport.action.START_AUDIO_FIRST;component=com.android.car.bugreport/.BugReportActivity;end"/>
|
||||
|
||||
<Space
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"/>
|
||||
</LinearLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/lock_screen_nav_buttons"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:layoutDirection="ltr"
|
||||
android:paddingEnd="@dimen/car_keyline_1"
|
||||
android:paddingStart="@dimen/car_keyline_1"
|
||||
android:visibility="gone"/>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/occlusion_buttons"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:layoutDirection="ltr"
|
||||
android:paddingEnd="@dimen/car_keyline_1"
|
||||
android:paddingStart="@dimen/car_keyline_1"
|
||||
android:visibility="gone">
|
||||
<com.android.systemui.car.systembar.CarSystemBarButton
|
||||
android:id="@+id/home"
|
||||
android:contentDescription="@string/system_bar_home_label"
|
||||
style="@style/SystemBarButton"
|
||||
systemui:componentNames="com.android.car.carlauncher/.CarLauncher"
|
||||
systemui:highlightWhenSelected="true"
|
||||
systemui:icon="@drawable/car_ic_home"
|
||||
systemui:intent="intent:#Intent;action=android.intent.action.MAIN;category=android.intent.category.HOME;launchFlags=0x14000000;end"/>
|
||||
</LinearLayout>
|
||||
</com.android.systemui.car.systembar.CarSystemBarView>
|
|
@ -91,14 +91,15 @@ PRODUCT_PACKAGES += \
|
|||
android.hardware.health@2.1-impl \
|
||||
android.hardware.health.storage@1.0-service \
|
||||
android.hardware.wifi@1.0-service \
|
||||
android.hardware.bluetooth@1.0-service \
|
||||
android.hardware.bluetooth@1.0-impl \
|
||||
android.hardware.bluetooth@1.1-impl \
|
||||
android.hardware.bluetooth@1.1-service \
|
||||
android.hardware.configstore@1.1-service \
|
||||
android.hardware.tv.cec@1.0-service.mock \
|
||||
vndservicemanager
|
||||
|
||||
# android.hardware.bluetooth@1.0-service \
|
||||
# android.hardware.bluetooth@1.0-impl \
|
||||
|
||||
# Auto modules
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.broadcastradio@2.0-service \
|
||||
|
@ -231,10 +232,10 @@ PRODUCT_PACKAGES += \
|
|||
Contacts \
|
||||
DeskClock \
|
||||
Music \
|
||||
Launcher3 \
|
||||
|
||||
# CarSetupWizard \
|
||||
# SetupWizard \
|
||||
# Launcher3 \
|
||||
# OneTimeInitializer \
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue