How can the background colour of that screen that ...
# compose
p
How can the background colour of that screen that opens on start of an app showing the app icon be changed?
not kotlin but kotlin colored 1
o
It's the splashscreen. If not using the kinda "new" Android Splash screen APIs, you can use the good ol' splash screen activity and control this through theming with XML Themes like in old days
c
are you talking about android? if so. its based on the xml theme you have set in your app. go to the manifest and play around with your theme there
p
Thanx a lot already. Will check the manifest.
c
sometimes that initial window/background color is called starting window: https://medium.com/google-developers/developing-for-android-viii-e91ced595fac but android also sorta recently formalized the splash screen seen here: https://developer.android.com/develop/ui/views/launch/splash-screen
p
Are you sure this approach is compatible with the current gradle configuration with `build.gradle.kts`and
libs.versions.toml
?
c
yep. nothing has changed here. before android can even think about opening your app and rendering it. it has to show... something. that something is the colors set (from the theme or similar) in xml. the system can read the xml quick enough to show that color right on tap of app icon.
👀 1