blob: 01da86c6f1cd89b5719622f0ff00bc55e1732ad8 [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2016 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">
<style name="CarDrawerActivityTheme" parent="Theme.AppCompat.Light.NoActionBar">
<item name="drawerArrowStyle">@style/DrawerArrowStyle</item>
<item name="searchViewStyle">@style/CarSearchView</item>
</style>
<style name="DrawerArrowStyle" parent="Widget.AppCompat.DrawerArrowToggle">
<item name="color">@color/car_title_light</item>
<item name="spinBars">true</item>
<item name="barLength">40dp</item>
<item name="thickness">3dp</item>
<item name="gapBetweenBars">6dp</item>
<item name="arrowShaftLength">34dp</item>
<item name="arrowHeadLength">18dp</item>
<item name="drawableSize">@dimen/car_drawer_header_menu_button_size</item>
</style>
<style name="CarSearchView" parent="Widget.AppCompat.SearchView">
<!-- We have to override the layout since the font, margins etc. arent't styleable. -->
<item name="layout">@layout/search_view_layout</item>
<item name="queryBackground">@drawable/car_searchview_background</item>
<!-- The onMeasure & onLayout in SearchView have weird behavior based on preferred_width
and max_width, the former being set in the framework builds. The only reliable way to
set the width and center the search view is to set an absurd max width and set the left
and right margins on the view.
-->
<item name="android:maxWidth">10000dp</item>
</style>
<style name="CarToolbarTheme">
<item name="titleTextAppearance">@style/CarTitle.Light</item>
<item name="contentInsetStart">@dimen/stream_content_keyline_1</item>
<item name="searchViewStyle">@style/CarSearchView</item>
</style>
</resources>