class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
installSplashScreen()
setContent {
// ...
}
}
}
However,
setContent
replaces the root view when it finishes loading, so any custom splash screen animation will not play. Is there a better alternative?
c
Colton Idle
08/31/2021, 7:39 AM
File a bug! I was just talking to the dev that implements this and they said to please file a bug. They said that in alpha02 in compose it will attach to decor view instead of root view which should solve the issue. But file a bug and link it and I will send it to them!