Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / library / src / main / res / values / themes.xml
themes.xml25 lines · 1.5 KiBRaw
| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <resources> |
| 3 | |
| 4 | <style name="Theme.General" parent="android:Theme.Material.Light.NoActionBar"> |
| 5 | <item name="android:windowSoftInputMode">stateUnchanged</item> |
| 6 | <!-- System splash (API 31+): explicit single-color background per mode, white disc |
| 7 | behind the black launcher glyph, and icon forced on API 33+ where the default |
| 8 | behavior can otherwise show an empty splash. --> |
| 9 | <item name="android:windowSplashScreenBackground">?android:attr/colorBackground</item> |
| 10 | <item name="android:windowSplashScreenIconBackgroundColor">@color/ic_launcher_background</item> |
| 11 | <!-- windowSplashScreenBehavior is API 33+; it lives in values-v33/themes.xml. --> |
| 12 | </style> |
| 13 | |
| 14 | <!-- Transparent host for headless prompt activities (passwords' CableActivity): |
| 15 | no content is ever set, only a system BiometricPrompt is shown, so the |
| 16 | window must not paint an opaque background over the calling app. --> |
| 17 | <style name="Theme.General.Translucent" parent="android:Theme.Material.Light.NoActionBar"> |
| 18 | <item name="android:windowIsTranslucent">true</item> |
| 19 | <item name="android:windowBackground">@android:color/transparent</item> |
| 20 | <item name="android:windowContentOverlay">@null</item> |
| 21 | <item name="android:windowNoTitle">true</item> |
| 22 | <item name="android:windowIsFloating">false</item> |
| 23 | <item name="android:backgroundDimEnabled">false</item> |
| 24 | </style> |
| 25 | </resources> |