Very nice, thank you! Also got it working with Compose for Desktop with minor changes. Using Navigation here is optional (and not available for compose-jb), you can do without. The interpolation method is tiny and can be copy and pasted from the Android exklusive class.
It works ! I have just to take care when I'm importing Animatable library 'cause i did a mistake and after that i had some difficult to have Animatable(float) instead of Animatable(Color) I don't know if i'm the only one and if it's clear but if i can help someone, i'm happy :) Thank you for tutorial !
Don't make a splash screen like he showed. Splash screen made as a composable screen only takes up the user's time, this is bad practice. Use the google splash screen api and provide animation via xml.
@@ТатьянаКульвановская the implementation of splash screen as provided by the official android docs doesn't seem to work with compose. you still get a brief moment of white screen. Any ideas how to fix that?
I have a video about how you can replace the white screen with your logo, but this approach doesn't work in compose anymore and with that you also can't make it animated.
hey philipp do you think jetpack compose would implement like bloc statemanagement life flutter did for statemanagements and morelikely and MVI pattern in android i would love to see a video of handling diff statess across compose so i can use it thanks
@Mihail Costei In your MainActivity after super.onCreate(savedInstanceState) //you call setTheme setTheme(R.style.YourTheme) then you start your activity, this method won't need to delay and start the activity but it's limited in terms of animations
Very nice, thank you!
Also got it working with Compose for Desktop with minor changes.
Using Navigation here is optional (and not available for compose-jb), you can do without. The interpolation method is tiny and can be copy and pasted from the Android exklusive class.
Just what I wanted to know!
Thanks Philipp
It works ! I have just to take care when I'm importing Animatable library 'cause i did a mistake and after that i had some difficult to have Animatable(float) instead of Animatable(Color) I don't know if i'm the only one and if it's clear but if i can help someone, i'm happy :) Thank you for tutorial !
Thanks! I love your videos. You explain very well.
Still there is a blank screen for about half a second, how can we avoid that?
Don't make a splash screen like he showed. Splash screen made as a composable screen only takes up the user's time, this is bad practice. Use the google splash screen api and provide animation via xml.
@@ТатьянаКульвановская the implementation of splash screen as provided by the official android docs doesn't seem to work with compose. you still get a brief moment of white screen. Any ideas how to fix that?
I knew last week itself this was coming... 😁😁
Ah, a fellow live stream viewer :D
thanks Philipp
There is one problem splash load again when backpress
Try to call finish() at the end of the SplashScreen activity
Very Cool Video
Thank You Bro 👍👍👍👍🔥🔥🔥🔥
Thanks
it's working great but i have anther problem , now i have two splash screens the first one default by android studio so how i remove it ?
Thank you
Thank you.
This isn't the best way to create a splash screen, as you can see the white screen before the actual splash screen
I have a video about how you can replace the white screen with your logo, but this approach doesn't work in compose anymore and with that you also can't make it animated.
So what's your solution @Aykut?
I also still cannot fix this issue with jetpack Compose 😢
@@PhilippLackner I think the new Splash API is the solution for that ?
AFAIK, that's only for Android 12
@@PhilippLackner developer.android.com/jetpack/androidx/releases/core#core-splashscreen-1.0.0-alpha01 backported to API 23
Are these 2 screens? or 1 ? in memory?
Thank you.
how implement nohistory in compose ?
have you figured out the solution ?
talk about lottiefiles as splash animation and various elements if possible, congratulations and thanks
so can we design splash screen in jetpack compose to app running with xml layout designs?
Yes
Great video, as always.
But I hope the user doesn't press the back button. hshs
popUpTo splash_screen when navigating to mainscreen
DANKE!
how to do that with SplashScreenAPI?
hey philipp do you think jetpack compose would implement like bloc statemanagement life flutter did for statemanagements and morelikely and MVI pattern in android i would love to see a video of handling diff statess across compose so i can use it thanks
everything in the layer above viewmodel is pretty much defined already, Compose only changes ui layer
my logo looks starched
this the ok way to build splashscreen not the right way
@Mihail Costei In your MainActivity after super.onCreate(savedInstanceState)
//you call setTheme
setTheme(R.style.YourTheme)
then you start your activity, this method won't need to delay and start the activity but it's limited in terms of animations
man don't read my mind without my permission again -_-
okay, I'll stop, I promise
@@PhilippLackner 😅
please use another emulator device, like pixel 4a
i did everything
no errors
but the app crashes
any ideas?
Please stop using LaunchedEffect(true), use LaunchedEffect(Unit) instead
Thank You