Customize Android splash screen (when opening the app)
Opened this issue · 0 comments
Feature Request
I don't like that even though I can make my Dioxus app look dark, the splash screen is white. I'm pretty sure the dark splash screen can be made starting at least from Android 9/10, but there is a "new" way of doing it, which is more customizable: https://developer.android.com/develop/ui/views/launch/splash-screen.
Starting in Android 12, the
SplashScreen
API lets apps launch with animation, including an into-app motion at launch, a splash screen showing your app icon, and a transition to your app itself. A SplashScreen is aWindow
and therefore covers anActivity
.
https://developer.android.com/develop/ui/views/launch/splash-screen/migrate#library
You can use the
SplashScreen
API directly, but we strongly recommend using the AndroidxSplashScreen
compat library instead. The compat library uses theSplashScreen
API, enables backward-compatibility, and creates a consistent look and feel for splash screen display across all Android versions. This document is written using the compat library.If you migrate using the
SplashScreen
API directly, on Android 11 and earlier your splash screen looks exactly the same as before the migration. Starting on Android 12, the splash screen has the Android 12 look and feel.If you migrate using the
SplashScreen
compat library, the system displays the same splash screen on all versions of Android.
Implement Suggestion
I think this is an upstream issue. Does Dioxus implement its own abstraction over Tauri to construct a custom desktop app?