Add a FocusParkingView to the navigation bar and the heads-up notification window. Add a dependency on the Chassis UI library. Make the nav buttons have a blue background, or whatever color the OEM specifies for the focus highlight. Test: atest com.android.systemui.car.navigationbar.CarNavigationButtonTest Bug: 155681517 Change-Id: Ia33c7692554c15427e429ecdba3bc978224ff129
49 lines
2.2 KiB
XML
49 lines
2.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
~ Copyright (C) 2018 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
|
|
-->
|
|
<resources xmlns:android="http://schemas.android.com/apk/res/android">
|
|
|
|
<!-- The style for the volume icons in the volume dialog. This style makes the icon scale to
|
|
fit its container since auto wants the icon to be larger. The padding is added to make it
|
|
so the icon does not press along the edges of the dialog. -->
|
|
<style name="VolumeButtons" parent="@android:style/Widget.Material.Button.Borderless">
|
|
<item name="android:background">@drawable/btn_borderless_rect</item>
|
|
<item name="android:scaleType">fitCenter</item>
|
|
<item name="android:padding">22dp</item>
|
|
</style>
|
|
|
|
<style name="TextAppearance.StatusBar.Clock"
|
|
parent="@*android:style/TextAppearance.StatusBar.Icon">
|
|
<item name="android:textSize">42sp</item>
|
|
<item name="android:fontFamily">sans-serif-regular</item>
|
|
<item name="android:textColor">@*android:color/car_grey_50</item>
|
|
</style>
|
|
|
|
<style name="TextAppearance.CarStatus" parent="@android:style/TextAppearance.DeviceDefault">
|
|
<item name="android:textSize">@*android:dimen/car_body2_size</item>
|
|
<item name="android:textColor">@*android:color/car_grey_50</item>
|
|
</style>
|
|
|
|
<style name="CarNavigationBarButtonTheme">
|
|
<item name="android:colorControlHighlight">@color/nav_bar_ripple_background_color</item>
|
|
</style>
|
|
|
|
<style name="NavigationBarButton">
|
|
<item name="android:layout_height">96dp</item>
|
|
<item name="android:layout_width">96dp</item>
|
|
<item name="android:background">@*android:drawable/item_background_material</item>
|
|
</style>
|
|
</resources> |