update libraries & targetSdk; use core-splashscreen for splashscreen
* targetSdk 30 -> 31 * core-ktx 1.6.0 -> 1.7.0 * appcompat 1.3.1 -> 1.4.1 * constraintlayout 2.1.0 -> 2.1.3 * navigation-fragment-ktx 2.3.5 -> 2.4.1 * navigation-ui-ktx 2.3.5 -> 2.4.1 * lifecycle-runtime-ktx 2.3.5 -> 2.4.1 * lifecycle-viewmodel-ktx 2.3.5 -> 2.4.1 * material 1.4.0 -> 1.5.0
This commit is contained in:
@ -26,4 +26,5 @@
|
||||
<color name="controlHighlightDark">#11ffffff</color>
|
||||
|
||||
<color name="ic_launcher_background">#ffffff</color>
|
||||
<color name="ic_splash_background">#ffffff</color>
|
||||
</resources>
|
@ -71,10 +71,20 @@
|
||||
</style>
|
||||
|
||||
<!-- splash theme -->
|
||||
<style name="SplashTheme" parent="Theme.AppCompat.NoActionBar">
|
||||
<item name="android:windowBackground">@drawable/bg_splash</item>
|
||||
<style name="Theme.App.Starting" parent="Theme.SplashScreen">
|
||||
<!-- Set the splash screen background, animated icon, and animation duration. -->
|
||||
<item name="windowSplashScreenBackground">@android:color/black</item>
|
||||
|
||||
<!-- Use windowSplashScreenAnimatedIcon to add either a drawable or an -->
|
||||
<!-- animated drawable. One of these is required. -->
|
||||
<item name="windowSplashScreenAnimatedIcon">@mipmap/ic_splash_round</item>
|
||||
<item name="windowSplashScreenAnimationDuration">200</item>
|
||||
|
||||
<!-- Set the theme of the Activity that directly follows your splash screen. -->
|
||||
<item name="postSplashScreenTheme">@style/AppTheme.Dark</item> # Required.
|
||||
</style>
|
||||
|
||||
|
||||
<!-- shapes -->
|
||||
<style name="ShapeAppearance.Teapod.RoundedPoster" parent="ShapeAppearance.MaterialComponents.LargeComponent">
|
||||
<item name="cornerFamily">rounded</item>
|
||||
|
Reference in New Issue
Block a user