• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2015 The Android Open Source Project
4  ~
5  ~ Licensed under the Apache License, Version 2.0 (the "License");
6  ~ you may not use this file except in compliance with the License.
7  ~ You may obtain a copy of the License at
8  ~
9  ~      http://www.apache.org/licenses/LICENSE-2.0
10  ~
11  ~ Unless required by applicable law or agreed to in writing, software
12  ~ distributed under the License is distributed on an "AS IS" BASIS,
13  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  ~ See the License for the specific language governing permissions and
15  ~ limitations under the License
16  -->
17
18<resources>
19
20    <style name="Settings"
21           parent="@android:style/Theme.DeviceDefault.Settings">
22        <item name="preferenceTheme">@style/PreferenceThemeOverlay</item>
23        <item name="preferenceCategoryTitleTextAppearance">@style/TextAppearance.CategoryTitle</item>
24    </style>
25
26    <style name="TextAppearance.CategoryTitle"
27           parent="@android:style/TextAppearance.DeviceDefault.Medium">
28        <item name="android:textAllCaps">true</item>
29        <item name="android:textSize">11sp</item>
30        <!-- 0.8 Spacing, 0.8/11 = 0.072727273 -->
31        <item name="android:letterSpacing">0.072727273</item>
32    </style>
33
34    <style name="ReviewPermissions"
35           parent="@android:style/Theme.DeviceDefault.Settings">
36        <item name="android:windowActionBar">false</item>
37        <item name="android:windowNoTitle">true</item>
38        <item name="android:switchStyle">@style/PermissionReviewSwitchStyle</item>
39        <item name="preferenceTheme">@style/PreferenceThemeOverlay</item>
40    </style>
41
42    <style name="GrantPermissions"
43           parent="@android:style/Theme.DeviceDefault.Light.Dialog.Alert">
44        <item name="android:windowNoTitle">true</item>
45        <item name="android:windowBackground">@android:color/transparent</item>
46        <!-- The following attributes change the behavior of the dialog, hence they should not be
47             themed -->
48        <item name="android:windowIsTranslucent">true</item>
49    </style>
50
51    <style name="Header.Settings"
52            parent="@android:style/Theme.DeviceDefault.Settings">
53    </style>
54
55    <style name="RequestRole" parent="android:Theme.DeviceDefault.Settings">
56        <item name="android:colorBackgroundCacheHint">@null</item>
57        <item name="android:navigationBarColor">@android:color/transparent</item>
58        <item name="android:navigationBarDividerColor">@null</item>
59        <item name="android:statusBarColor">@android:color/transparent</item>
60        <item name="android:windowActionBar">false</item>
61        <item name="android:windowAnimationStyle">@null</item>
62        <item name="android:windowBackground">@android:color/transparent</item>
63        <item name="android:windowContentOverlay">@null</item>
64        <item name="android:windowDisablePreview">true</item>
65        <item name="android:windowIsTranslucent">true</item>
66        <item name="android:windowLightNavigationBar">false</item>
67        <item name="android:windowLightStatusBar">false</item>
68        <item name="android:windowNoTitle">true</item>
69    </style>
70
71    <style name="Theme.PermissionGrantDialog"
72           parent="@android:style/Theme.DeviceDefault.Light.Dialog">
73        <item name="android:divider">@drawable/list_divider</item>
74    </style>
75
76    <style name="PermissionDialog"
77           parent="@android:style/Theme.DeviceDefault.Light.Dialog.NoActionBar">
78    </style>
79
80    <style name="CarSettings" parent="Theme.CarUi.WithToolbar">
81        <item name="carDividerColor">@*android:color/car_list_divider</item>
82    </style>
83
84    <style name="AutoRevokeDivider">
85        <item name="android:background">@color/divider_color_primary</item>
86    </style>
87
88    <style name="Theme.DeviceDefault.Dialog.Alert.DayNight" parent="@android:style/Theme.DeviceDefault.Light.Dialog.Alert" />
89
90
91<!-- Do not allow OEMs to overlay these themes.
92 Must Guarantee that filterTouches is set for these activities -->
93    <style name="FilterTouches">
94        <item name="android:filterTouchesWhenObscured">true</item>
95    </style>
96
97    <style name="Settings.FilterTouches">
98        <item name="android:filterTouchesWhenObscured">true</item>
99    </style>
100
101    <style name="ReviewPermissions.FilterTouches">
102        <item name="android:filterTouchesWhenObscured">true</item>
103    </style>
104
105    <style name="GrantPermissions.FilterTouches">
106        <item name="android:filterTouchesWhenObscured">true</item>
107    </style>
108
109    <style name="RequestRole.FilterTouches">
110        <item name="android:filterTouchesWhenObscured">true</item>
111    </style>
112
113    <style name="PermissionDialog.FilterTouches">
114        <item name="android:filterTouchesWhenObscured">true</item>
115    </style>
116
117</resources>
118