![]() ![]() For a unified appearance, we want the nav bar and status bar to match the windowSplashScreenBackground. If you leave them with default values, API level 30 and lower devices may display default black bars on the status bar and nav bar. Since your actual theme isn’t being used yet, the status bar and nav bar attributes are there to ensure that you have a consistent theme applied to them when the app is launched.Your default app theme should be set here. After the splash screen has finished, you can specify the actual app theme you wish to use using the postSplashScreenTheme setting.As an AnimatedVectorDrawable can set it, it actually has no effect on the icon’s animation, but it is helpful for personalizing the icon’s exit animation. windowSplashScreenAnimationDuration - This controls how long the animated icon will be displayed.Icons larger than 108dp should not be used since they would clip. This is configured to obtain the circular launcher icon and ought to function with earlier API levels. Your splash screen icon may be found here: windowSplashScreenAnimatedIcon.The background color of the entire splash screen is windowSplashScreenBackground.For backward compatibility, we’ll utilize the compact version. Set the Splash Screen API dependency in Gradle to version 31. Within your app module adle, modify your compileSdk. ![]() We’ll make use of this API’s backward compatibility and include a splash screen even for earlier Android releases. There are a few settings you must make in your app before accessing the new API. Grab a coffee and follow along once you’re done, you’ll have an animated splash screen that matches your device’s theme. The API offers backward compatibility with earlier API levels along with support for animated icons via AnimatedVectorDrawable or AnimationDrawable. More inconsistent design and greater user intrusion In order to provide your splash screen a more unified appearance and make it less intrusive for your users, you must now add support for Android 12. You now have two splash displays, and they most likely differ greatly from one another. Sounds wonderful until you realize that the Android 12 default splash screen would appear first, followed by your own splash screen if you were using an Activity or Fragment to show a splash screen. On Android 12, every app will by default display a splash screen with the app symbol in the middle. A new Splash Screen API was implemented with the release of Android 12. ![]()
0 Comments
Leave a Reply. |