1<!-- 2 ~ Copyright (C) 2018 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<resources> 18 <style name="no_starting_window" parent="@android:style/Theme.DeviceDefault"> 19 <item name="android:windowDisablePreview">true</item> 20 </style> 21 <style name="no_animation" parent="@android:style/Theme.DeviceDefault"> 22 <item name="android:windowAnimationStyle">@null</item> 23 <item name="android:windowDisablePreview">true</item> 24 </style> 25 <style name="WhiteBackgroundTheme" parent="@android:style/Theme.Holo.NoActionBar.Fullscreen"> 26 <item name="android:windowNoTitle">true</item> 27 <item name="android:windowFullscreen">true</item> 28 <item name="android:windowOverscan">true</item> 29 <item name="android:fadingEdge">none</item> 30 <item name="android:windowBackground">@android:color/white</item> 31 <item name="android:windowContentTransitions">false</item> 32 <item name="android:windowAnimationStyle">@null</item> 33 </style> 34 <style name="window_activity_transitions" parent="@android:style/Theme.DeviceDefault"> 35 <item name="android:windowActivityTransitions">true</item> 36 </style> 37 <style name="NoInsetsTheme" parent="@android:style/Theme.NoTitleBar"> 38 <item name="android:windowLayoutInDisplayCutoutMode">always</item> 39 <item name="android:windowSoftInputMode">stateHidden</item> 40 </style> 41 <style name="NoInsetsTheme.Translucent" parent="NoInsetsTheme"> 42 <item name="android:windowIsTranslucent">true</item> 43 </style> 44 <style name="Theme.WhiteBackground" parent="@android:style/Theme.Material.NoActionBar"> 45 <item name="android:background">#ffffff</item> 46 <item name="android:windowBackground">#ffffff</item> 47 <item name="android:colorBackground">#ffffff</item> 48 </style> 49 <style name="Theme.EdgeExtensions" parent="Theme.WhiteBackground"> 50 <item name="android:statusBarColor">@android:color/transparent</item> 51 <item name="android:navigationBarColor">@android:color/transparent</item> 52 <item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item> 53 <item name="android:windowTranslucentStatus">true</item> 54 <item name="android:windowTranslucentNavigation">true</item> 55 </style> 56 <style name="Theme.TranslucentBars" parent="@android:style/Theme.Material.NoActionBar"> 57 <item name="android:statusBarColor">@android:color/transparent</item> 58 <item name="android:navigationBarColor">@android:color/transparent</item> 59 </style> 60 <style name="window_task_animation" parent="@android:style/Theme.DeviceDefault"> 61 <item name="android:taskOpenEnterAnimation">@anim/alpha</item> 62 <item name="android:taskOpenExitAnimation">@anim/alpha</item> 63 <item name="android:taskCloseEnterAnimation">@anim/alpha</item> 64 <item name="android:taskCloseExitAnimation">@anim/alpha</item> 65 </style> 66 <style name="BackgroundImage" parent="@android:style/Theme.NoTitleBar.Fullscreen"> 67 <item name="android:windowNoTitle">true</item> 68 <item name="android:windowLayoutInDisplayCutoutMode">always</item> 69 <item name="android:windowSoftInputMode">stateHidden</item> 70 </style> 71 <style name="BlurryDialog" parent="TranslucentDialog"> 72 <item name="android:windowBackgroundBlurRadius">@dimen/test_background_blur_radius</item> 73 <item name="android:windowBlurBehindRadius">@dimen/test_blur_behind_radius</item> 74 <item name="android:windowBlurBehindEnabled">true</item> 75 </style> 76 77 <style name="BadBlurryDialog" parent="TranslucentDialog"> 78 <item name="android:windowIsTranslucent">false</item> 79 <item name="android:windowBlurBehindEnabled">false</item> 80 </style> 81 82 <style name="Floating" parent="@android:style/Theme.DeviceDefault"> 83 <item name="android:backgroundDimEnabled">false</item> 84 <item name="android:windowActionBar">false</item> 85 <item name="android:windowIsFloating">true</item> 86 <item name="android:windowNoTitle">true</item> 87 </style> 88 <style name="Floating.NoMove"> 89 <item name="android:windowNoMoveAnimation">true</item> 90 </style> 91 <style name="TranslucentDialog" parent="@android:style/Theme.Material.Dialog"> 92 <item name="android:windowIsTranslucent">true</item> 93 <item name="android:windowBackground">@android:color/transparent</item> 94 <item name="android:windowNoTitle">true</item> 95 <item name="android:backgroundDimEnabled">false</item> 96 <item name="android:windowBlurBehindEnabled">true</item> 97 <item name="android:windowDisablePreview">true</item> 98 <item name="android:windowElevation">0dp</item> 99 <item name="android:windowLayoutInDisplayCutoutMode">always</item> 100 <item name="android:windowSoftInputMode">stateHidden</item> 101 </style> 102 103 <style name="LayoutInDisplayCutoutModeUnspecified"> 104 <item name="android:windowIsFloating">false</item> 105 </style> 106 <style name="LayoutInDisplayCutoutModeNever"> 107 <item name="android:windowIsFloating">false</item> 108 <item name="android:windowLayoutInDisplayCutoutMode">never</item> 109 </style> 110 <style name="LayoutInDisplayCutoutModeDefault"> 111 <item name="android:windowIsFloating">false</item> 112 <item name="android:windowLayoutInDisplayCutoutMode">default</item> 113 </style> 114 <style name="LayoutInDisplayCutoutModeShortEdges"> 115 <item name="android:windowIsFloating">false</item> 116 <item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item> 117 </style> 118 <style name="LayoutInDisplayCutoutModeAlways"> 119 <item name="android:windowIsFloating">false</item> 120 <item name="android:windowLayoutInDisplayCutoutMode">always</item> 121 </style> 122 <style name="BlackSystemBars"> 123 <item name="android:statusBarColor">@android:color/black</item> 124 <item name="android:navigationBarColor">@android:color/black</item> 125 <item name="android:navigationBarDividerColor">@android:color/black</item> 126 </style> 127 128 <!-- 129 TODO(b/309578419): 130 1. Move insets and display cutout related tests to a targetSdk level which is lower than V. 131 2. Make activities handle insets properly. 132 3. Remove these styles. 133 --> 134 <style name="OptOutEdgeToEdge" parent="@android:style/Theme.DeviceDefault" /> 135 <style name="OptOutEdgeToEdge.NoActionBar" parent="@android:style/Theme.Material.NoActionBar" /> 136 <style name="OptOutEdgeToEdge.NoStartingWindow" parent="no_starting_window" /> 137 </resources> 138