The recommended method of creating a splash screen while the app loads is to specify a theme in the manifest for the launch activity that uses a layer-list as a window background.
How can this method be extended to support multiple user themes (e.g. light, dark, pink, etc.) so that the splash screen background can be the appopriate colour?
I have attempted using styled attributes ?backgroundColour
but the correct style isn't set when the initial themeing occurs. I have also tried overriding getTheme()
in the launch activity but it receives the call after the splash screen is already displayed.
Is this possible to do in Android?
setContentView
– Prof