Starting in Android 12 (API 31), Google standardized splash screens across all apps using the official SplashScreen API. Defining compliant splash screen dimensions and vector icon assets prevents awkward stretching or clipping.

Android 12+ Splash Theme Configuration XML

res/values/themes.xmlxml
<!-- Base Application Theme inheriting from Theme.SplashScreen -->
<style name="Theme.App.Starting" parent="Theme.SplashScreen">
    <!-- Background color of splash screen -->
    <item name="windowSplashScreenBackground">#0066CC</item>
    
    <!-- Splash screen vector icon (Recommended size: 240x240 dp, content within 160 dp diameter circle) -->
    <item name="windowSplashScreenAnimatedIcon">@drawable/ic_splash_logo</item>
    
    <!-- Target theme to switch to after app initialization completes -->
    <item name="postSplashScreenTheme">@style/Theme.MyApp</item>
</style>