How to Make an Animated Splash Screen With Jetpack Compose - Android Studio Tutorial

Поделиться
HTML-код
  • Опубликовано: 26 ноя 2024

Комментарии • 49

  • @CommanderSteps
    @CommanderSteps 3 года назад +3

    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.

  • @jatinvashisht4293
    @jatinvashisht4293 3 года назад +1

    Just what I wanted to know!
    Thanks Philipp

  • @latchi4596
    @latchi4596 Год назад

    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 !

  • @raiarauju
    @raiarauju 11 месяцев назад

    Thanks! I love your videos. You explain very well.

  • @dxndivyansh
    @dxndivyansh 3 года назад +12

    Still there is a blank screen for about half a second, how can we avoid that?

    • @ТатьянаКульвановская
      @ТатьянаКульвановская 2 года назад +6

      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.

    • @thaddeusojike9250
      @thaddeusojike9250 10 месяцев назад

      @@ТатьянаКульвановская 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?

  • @vathsan3906
    @vathsan3906 3 года назад

    I knew last week itself this was coming... 😁😁

  • @hassanharera
    @hassanharera 3 года назад

    thanks Philipp

  • @KalpeshChari
    @KalpeshChari 3 года назад +4

    There is one problem splash load again when backpress

    • @danielepadovano6192
      @danielepadovano6192 2 года назад

      Try to call finish() at the end of the SplashScreen activity

  • @mustafaammar551
    @mustafaammar551 3 года назад

    Very Cool Video
    Thank You Bro 👍👍👍👍🔥🔥🔥🔥

  • @amineayachi335
    @amineayachi335 3 года назад

    Thanks

  • @m.elnwishy
    @m.elnwishy 2 года назад

    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 ?

  • @матжонфаттоев-щ5ш
    @матжонфаттоев-щ5ш 3 года назад

    Thank you

  • @Ali-hx4yi
    @Ali-hx4yi 3 года назад

    Thank you.

  • @aykxt
    @aykxt 3 года назад +5

    This isn't the best way to create a splash screen, as you can see the white screen before the actual splash screen

    • @PhilippLackner
      @PhilippLackner  3 года назад +3

      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.

    • @bboydarknesz
      @bboydarknesz 3 года назад +1

      So what's your solution @Aykut?
      I also still cannot fix this issue with jetpack Compose 😢

    • @abdelrahmanesam3684
      @abdelrahmanesam3684 3 года назад +1

      @@PhilippLackner I think the new Splash API is the solution for that ?

    • @PhilippLackner
      @PhilippLackner  3 года назад +2

      AFAIK, that's only for Android 12

    • @GakisStylianos
      @GakisStylianos 3 года назад +4

      @@PhilippLackner developer.android.com/jetpack/androidx/releases/core#core-splashscreen-1.0.0-alpha01 backported to API 23

  • @ganshakumari5196
    @ganshakumari5196 5 месяцев назад

    Are these 2 screens? or 1 ? in memory?

  • @eodeun-manual
    @eodeun-manual 3 года назад +1

    Thank you.
    how implement nohistory in compose ?

  • @MaisUmSomente
    @MaisUmSomente 3 года назад

    talk about lottiefiles as splash animation and various elements if possible, congratulations and thanks

  • @ayushranjan3472
    @ayushranjan3472 3 года назад +1

    so can we design splash screen in jetpack compose to app running with xml layout designs?

  • @ericks6783
    @ericks6783 3 года назад

    Great video, as always.
    But I hope the user doesn't press the back button. hshs

    • @cansungur4322
      @cansungur4322 3 года назад

      popUpTo splash_screen when navigating to mainscreen

  • @zhanyshmasirov4611
    @zhanyshmasirov4611 2 года назад

    DANKE!

  • @LEEJIHUN
    @LEEJIHUN Год назад

    how to do that with SplashScreenAPI?

  • @skr4tchnen335
    @skr4tchnen335 3 года назад

    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

    • @alexneeky7920
      @alexneeky7920 3 года назад

      everything in the layer above viewmodel is pretty much defined already, Compose only changes ui layer

  • @PraffulBharti
    @PraffulBharti 3 года назад

    my logo looks starched

  • @baadrqaaba9529
    @baadrqaaba9529 3 года назад +2

    this the ok way to build splashscreen not the right way

    • @baadrqaaba9529
      @baadrqaaba9529 3 года назад

      @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

  • @abdelrahmanesam3684
    @abdelrahmanesam3684 3 года назад

    man don't read my mind without my permission again -_-

  • @mdjahidulislam9205
    @mdjahidulislam9205 3 года назад

    please use another emulator device, like pixel 4a

  • @ahouraahvar2363
    @ahouraahvar2363 2 года назад

    i did everything
    no errors
    but the app crashes
    any ideas?

  • @LightDante
    @LightDante 2 года назад

    Please stop using LaunchedEffect(true), use LaunchedEffect(Unit) instead

  • @xaviersoh
    @xaviersoh 3 года назад

    Thank You