How to Create a Shimmer Loading Effect in Jetpack Compose (WITHOUT Library!)

Поделиться
HTML-код
  • Опубликовано: 19 окт 2024
  • In this video I'll show you how you can create a shimmer loading effect in Jetpack Compose without using a library.
    ⭐ Get certificates for your future job
    ⭐ Save countless hours of time
    ⭐ 100% money back guarantee for 30 days
    ⭐ Become a professional Android developer now:
    pl-coding.com/...
    💻 Let me be your mentor and become an industry-ready Android developer in 10 weeks:
    pl-coding.com/...
    Subscribe to my FREE newsletter for regular Android, Kotlin & Architecture advice!
    pl-coding.com/...
    Join this channel to get access to perks:
    / @philipplackner
    Get the source code for this video here:
    github.com/phi...
    Join my Discord server:
    / discord
    Regular programming advice on my Instagram page: / _philipplackner_
    Checkout my GitHub: github.com/phi...
    You like my free content? Here you can buy me a coffee:
    www.buymeacoff...

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

  • @original_anu
    @original_anu Год назад +18

    This removes my accompanist dependency. Cheers ❤

  • @YunlongZhao-r7t
    @YunlongZhao-r7t День назад

    Learn a lot, thank you!

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

    The one and only a professional developer who does not wear any spec to write code!!

  • @NecoRuChannel
    @NecoRuChannel Год назад +2

    Phillip you are the best!! Thank you!! It is great tutorial like all yours tutorials !!

  • @jackeblan
    @jackeblan 3 месяца назад +1

    Each time the animation is reset, it will go back to the first phase of recomposition. To minimize this phasing, you must do the color animation in the draw phase. You have to do this inside the draw blocks like drawWithCache, drawWithContent or drawBehind. That will optimize your composable by not going through unnecessary phases.

    • @vhmvdn
      @vhmvdn 3 месяца назад +1

      That’s exactly what I was thinking. This shouldn’t have to be done with recomposition, but rather within draw phase only.

  • @remydupont7454
    @remydupont7454 Год назад +6

    Very interesting.
    Just wondering if it's really performant to use the background modifier and offset.
    What's about to replace with drawBehind and offset lambdas? Can it skip the measure phase?
    Sorry if I'm wrong, still learning Compose (Learned a lot from you)
    Anyway thank you for this tutorial, great job. Can now create custom modifiers

  • @John-qt6qk
    @John-qt6qk Год назад

    Thanks Philipp Lackner I just adapted it to my project and it looks like awesome 😁

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

    Perfect! Thanks Philipp.

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

    Cooollll Philips, i directly to implement to my own project , thanks a lot.

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

    Hi @PhilippLackner
    thank you for this awesome tutorial. Is it also possible in xml instead of jetpack compose?

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

    Man, that`s wonderfull! Thank you!

  • @hafizmohd013
    @hafizmohd013 2 месяца назад

    It is compulsory to add ShimmerEffectComposeTheme if let say I want to put Scaffold instead?

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

    Great content man.
    What theme are you using in AS?

    • @ubersticks
      @ubersticks Год назад +1

      I think it is Xcode-Dark-Theme plugin.

  • @Traffic_Pro
    @Traffic_Pro Год назад +2

    When you make a video about chatGPT and its thread to android developers?

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

    This guy is amazing

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

    Thank you bro

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

    One of the most underrated channel on RUclips 🥲. You surely deserve much more than this sir..

  • @bek_groider
    @bek_groider Год назад +1

    I think, in compose we shouldn't rely on libraries. Compose let's us customize manage view easily. It is not Xml anymore

  • @iliasreventon8763
    @iliasreventon8763 Год назад +3

    do you believe that xml is going to be deprecated in the next five years?

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

    thanks, you're videos keep me up to date with the absolutely necessary information not like google IO which shows a lot of unnecessary information.

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

    Thanks 🙏🙏🙏

  • @KamalKumar-mi9lr
    @KamalKumar-mi9lr Год назад

    Hi man , Can we get any tutorial about activity tracking ?

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

    Can we do it in xml without compose and without use of any library?

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

    Thanks a lot :-)

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

    I tried your code in my project, gradient is coming but not animating. I tried executing your code and tried replacing your code with my code , it's working there. Any idea what could be the issue?

  • @saadahmed3581
    @saadahmed3581 29 дней назад

    it recomposes thousands, millions of times, which causes the screen to become laggy and choppy. How can we fix it?

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

    Good stuff

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

    Is it possible to detect the size of contentAfterLoading sub-conponent , iterate it and auto generate the shimmer effect box for that ?

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

    Cool!

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

    Exist an api that can make awesome texts with 2 colors etc...?

  • @DanielLuche
    @DanielLuche 8 месяцев назад

    Nice

  • @me-kl7bq
    @me-kl7bq Год назад

    Can u create content that is more beginner friendly as well?

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

      I have plenty of beginner level content on my channel, from the absolute basics to more advanced

    • @me-kl7bq
      @me-kl7bq Год назад

      @@PhilippLackner ohk. I am new to your channel. Surely will check

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

    one android tv app with exoplayer tutorial plz

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

    Osm

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

    so complicated
    I prefer doing that with a library

    • @arthurgomes9248
      @arthurgomes9248 Год назад +2

      I guess that depends on your background and knowledge as a programmer. I used to be a game developer, so drawing shapes and messing around functions do draw basic stuff on screen comes naturally.
      But if you are not in a hurry to proper learn how to do this by yourself, and by extension , have more control over it, there is no problem using a library.
      It might get blocked if you to do this using a library when a experienced team with compose starts questioning why use third party code when you can do it yourself.

  • @maxbielik
    @maxbielik Год назад +1

    First

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

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

    hey Philipp thanks for great video! :) btw do you still you twitter if so drop you link pls