Use animated drawable on 31+ only
This commit is contained in:
8
app/src/main/res/values-v31/themes.xml
Normal file
8
app/src/main/res/values-v31/themes.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<style name="Theme.App.Starting" parent="Base.Theme.App.Starting">
|
||||
<item name="android:windowSplashScreenAnimatedIcon">@drawable/splash_screen_animated</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
||||
@@ -1,10 +1,11 @@
|
||||
<resources>
|
||||
|
||||
<style name="Theme.App.Starting" parent="Theme.SplashScreen">
|
||||
<item name="windowSplashScreenBackground">@drawable/ic_splash_screen_background</item>
|
||||
<style name="Base.Theme.App.Starting" parent="Theme.SplashScreen">
|
||||
<item name="postSplashScreenTheme">@style/AppTheme</item>
|
||||
</style>
|
||||
|
||||
<style name="Theme.App.Starting" parent="Base.Theme.App.Starting" />
|
||||
|
||||
<style name="AppTheme" parent="Theme.Material3.Light.NoActionBar">
|
||||
<item name="colorPrimary">@color/md_theme_light_primary</item>
|
||||
<item name="colorOnPrimary">@color/md_theme_light_onPrimary</item>
|
||||
|
||||
Reference in New Issue
Block a user