OSDN Git Service

DO NOT MERGE. Grant MMS Uri permissions as the calling UID.
[android-x86/frameworks-base.git] / core / res / res / values-watch / themes_material.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2016 The Android Open Source Project
3
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
7
8           http://www.apache.org/licenses/LICENSE-2.0
9
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.
15 -->
16
17 <!--
18 ===============================================================
19                         PLEASE READ
20 ===============================================================
21
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.
26
27 ===============================================================
28                         PLEASE READ
29 ===============================================================
30  -->
31 <resources>
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     </style>
41
42     <!-- Override behaviour to set the theme colours for dialogs, keep them the same. -->
43     <style name="ThemeOverlay.Material.Dialog" parent="ThemeOverlay.Material.BaseDialog">
44         <item name="windowIsFloating">false</item>
45     </style>
46
47     <!-- Force the background and floating colours to be the default colours. -->
48     <style name="Theme.Material.Dialog" parent="Theme.Material.BaseDialog">
49         <item name="colorBackground">@color/background_material_dark</item>
50         <item name="colorBackgroundFloating">@color/background_floating_material_dark</item>
51         <item name="colorBackgroundCacheHint">@color/background_cache_hint_selector_material_dark</item>
52         <item name="windowIsFloating">false</item>
53     </style>
54
55     <!-- Force the background and floating colours to be the default colours. -->
56     <style name="Theme.Material.Light.Dialog" parent="Theme.Material.Light.BaseDialog">
57         <item name="colorBackground">@color/background_material_light</item>
58         <item name="colorBackgroundFloating">@color/background_floating_material_light</item>
59         <item name="colorBackgroundCacheHint">@color/background_cache_hint_selector_material_light</item>
60         <item name="windowIsFloating">false</item>
61     </style>
62 </resources>