1<!-- Copyright (C) 2018 The Android Open Source Project
2
3Licensed under the Apache License, Version 2.0 (the "License");
4you may not use this file except in compliance with the License.
5You may obtain a copy of the License at
6
7  http://www.apache.org/licenses/LICENSE-2.0
8
9Unless required by applicable law or agreed to in writing, software
10distributed under the License is distributed on an "AS IS" BASIS,
11WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12See the License for the specific language governing permissions and
13limitations under the License.
14-->
15<resources>
16    <!-- This theme exists only for defining new attrs relevant to Cars. It should not modify values
17     available from {@link android.R.style#Theme_DeviceDefault}. Overriding theme values is allowed
18     (e.g. {@link android.R.attr.dialogTheme ?android:dialogTheme} provided the referenced Theme
19     can be easily overlaid.-->
20    <style name="Theme.CarDefaultBase" parent="android:Theme.DeviceDefault">
21        <item name="android:dialogTheme">@style/Theme.CarDefault.Dialog</item>
22        <item name="android:alertDialogTheme">@style/Theme.CarDefault.Dialog.Alert</item>
23    </style>
24    <style name="Theme.CarDefaultBase.Dialog" parent="android:Theme.DeviceDefault.Dialog">
25        <item name="android:alertDialogTheme">@style/Theme.CarDefault.Dialog.Alert</item>
26    </style>
27    <style name="Theme.CarDefaultBase.Dialog.Alert" parent="android:Theme.DeviceDefault.Dialog.Alert">
28        <item name="android:alertDialogTheme">@style/Theme.CarDefault.Dialog.Alert</item>
29    </style>
30
31    <!-- Main theme for Car-based activities. This theme will automatically switch to darker colors
32     during night mode. -->
33    <style name="Theme.CarDefault" parent="Theme.CarDefaultBase"/>
34
35    <style name="Theme.CarDefault.Dialog" parent="Theme.CarDefaultBase.Dialog"/>
36
37    <style name="Theme.CarDefault.Dialog.Alert" parent="Theme.CarDefaultBase.Dialog.Alert"/>
38
39    <!-- Variant of the CarDefault theme with no action bar. -->
40    <style name="Theme.CarDefault.NoActionBar">
41        <item name="android:windowActionBar">false</item>
42        <item name="android:windowNoTitle">true</item>
43    </style>
44
45    <!-- Variant of the CarDefault theme that has no title bar and fills the entire screen.  This
46     theme sets {@link android.R.attr#windowFullscreen} to true.  -->
47    <style name="Theme.CarDefault.NoActionBar.Fullscreen">
48        <item name="android:windowFullscreen">true</item>
49        <item name="android:windowContentOverlay">@null</item>
50    </style>
51
52</resources>
53