1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2016 The Android Open Source Project
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
8 http://www.apache.org/licenses/LICENSE-2.0
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
18 ===============================================================
20 ===============================================================
22 The Material themes must not be modified in order to pass CTS.
23 Many related themes and styles depend on other values defined in this file.
24 If you would like to provide custom themes and styles for your device,
25 please see styles_device_defaults.xml.
27 ===============================================================
29 ===============================================================
32 <!-- Default theme for material style input methods, which is used by the
33 {@link android.inputmethodservice.InputMethodService} class.
34 this inherits from Theme.Panel, but sets up IME appropriate animations
35 and a few custom attributes. -->
36 <style name="Theme.Material.InputMethod" parent="Theme.Material.Panel">
37 <item name="windowAnimationStyle">@style/Animation.InputMethod</item>
38 <item name="imeFullscreenBackground">?colorBackground</item>
39 <item name="imeExtractEnterAnimation">@anim/input_method_extract_enter</item>
40 <item name="windowSwipeToDismiss">false</item>
43 <!-- Override behaviour to set the theme colours for dialogs, keep them the same. -->
44 <style name="ThemeOverlay.Material.Dialog" parent="ThemeOverlay.Material.BaseDialog">
45 <item name="windowIsFloating">false</item>
48 <!-- Force the background and floating colours to be the default colours. -->
49 <style name="Theme.Material.Dialog" parent="Theme.Material.BaseDialog">
50 <item name="colorBackground">@color/background_material_dark</item>
51 <item name="colorBackgroundFloating">@color/background_floating_material_dark</item>
52 <item name="colorBackgroundCacheHint">@color/background_cache_hint_selector_material_dark</item>
53 <item name="windowIsFloating">false</item>
56 <!-- Force the background and floating colours to be the default colours. -->
57 <style name="Theme.Material.Light.Dialog" parent="Theme.Material.Light.BaseDialog">
58 <item name="colorBackground">@color/background_material_light</item>
59 <item name="colorBackgroundFloating">@color/background_floating_material_light</item>
60 <item name="colorBackgroundCacheHint">@color/background_cache_hint_selector_material_light</item>
61 <item name="windowIsFloating">false</item>
64 <!-- Force all settings themes to use normal Material theme. -->
65 <style name="Theme.Material.Settings" parent="Theme.Material"/>
66 <style name="Theme.Material.Settings.NoActionBar" parent="Theme.Material"/>
67 <style name="Theme.Material.Settings.BaseDialog" parent="Theme.Material.Dialog"/>
68 <style name="Theme.Material.Settings.Dialog" parent="Theme.Material.Settings.BaseDialog"/>
69 <style name="Theme.Material.Settings.Dialog.BaseAlert" parent="Theme.Material.Dialog.BaseAlert"/>
70 <style name="Theme.Material.Settings.Dialog.Alert" parent="Theme.Material.Settings.Dialog.BaseAlert"/>
71 <style name="Theme.Material.Settings.DialogWhenLarge" parent="Theme.Material.DialogWhenLarge"/>
72 <style name="Theme.Material.Settings.DialogWhenLarge.NoActionBar" parent="Theme.Material.DialogWhenLarge.NoActionBar"/>
73 <style name="Theme.Material.Settings.Dialog.Presentation" parent="Theme.Material.Dialog.Presentation"/>
74 <style name="Theme.Material.Settings.SearchBar" parent="Theme.Material.SearchBar"/>
75 <style name="Theme.Material.Settings.CompactMenu" parent="Theme.Material.CompactMenu"/>