How can I create this splash screen with two anima...
# compose
a
How can I create this splash screen with two animations without creating a separate composable screen? Is there any solution?🤔 Note: The design was created in Figma.
s
Compose has pretty rich animation-support baked in, but I doubt that Figma's codegen will write the missing pieces for you. Will the animations in this quick guide work for you? https://developer.android.com/develop/ui/compose/animation/quick-guide
a
@Seri ok, I'm Know that,I need do it using native splash screen can I do that? or without create new page.
c
Have you had a look at https://developer.android.com/develop/ui/views/launch/splash-screen#elements How would your design fit in this?
s
The native splash screen is intentionally limited in its abilities, since it's meant to load immediately while the rest of your app initializes in the background. Could you create a native splash screen which covers the initial state, then a fully-loaded Compose screen which covers the animations?
Alternatively, you could accept the limitations of the native splash screen API and try to write it fully in XML.
a
Try profiling your app's startup time to see what's taking up those seconds
🙌 1
a
thanks @Seri