Splash Screen Animations - Basic Tutorial
Here's a quick guide to getting an animated loading screen into you app using default Android icons from scratch. It's not really that hard, but it can be a bit non-intuitive. Prepare the Project 1) Create an empty compose project named SplashScreenTutorial if you want to keep things simple. This will save you having to think about theme names etc. 2) Add the required dependency to your app dependencies { // ... // Splash screen dependency implementation ( "androidx.core:core-splashscreen:1.0.1" ) } Create the Icon and Animation 1) Create a new icon for the animation In your res/drawable folder, add a new Vector Asset . I'm using trophy for this example so you can celebrate your success! Be sure to set a good color that will show up nicely. I'm using 87DE5D I've put the full res/drawable/outline_trophy_24.xml code below to make things easier <vector xmlns: android ="http://schemas.android.com/apk/res/android" android :height...