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

  Рет қаралды 30,617

Philipp Lackner

Philipp Lackner

Күн бұрын

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...

Пікірлер: 42
@original_anu
@original_anu Жыл бұрын
This removes my accompanist dependency. Cheers ❤
@jackeblan
@jackeblan 2 ай бұрын
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 Ай бұрын
That’s exactly what I was thinking. This shouldn’t have to be done with recomposition, but rather within draw phase only.
@mubaraknative
@mubaraknative Жыл бұрын
The one and only a professional developer who does not wear any spec to write code!!
@NecoRuChannel
@NecoRuChannel Жыл бұрын
Phillip you are the best!! Thank you!! It is great tutorial like all yours tutorials !!
@John-qt6qk
@John-qt6qk Жыл бұрын
Thanks Philipp Lackner I just adapted it to my project and it looks like awesome 😁
@baharudinmaulana78
@baharudinmaulana78 Жыл бұрын
Cooollll Philips, i directly to implement to my own project , thanks a lot.
@remydupont7454
@remydupont7454 Жыл бұрын
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
@Aweklin
@Aweklin Жыл бұрын
Perfect! Thanks Philipp.
@GN9K71
@GN9K71 Жыл бұрын
Man, that`s wonderfull! Thank you!
@iliasreventon8763
@iliasreventon8763 Жыл бұрын
do you believe that xml is going to be deprecated in the next five years?
@Traffic_Pro
@Traffic_Pro Жыл бұрын
When you make a video about chatGPT and its thread to android developers?
@hafizmohd013
@hafizmohd013 27 күн бұрын
It is compulsory to add ShimmerEffectComposeTheme if let say I want to put Scaffold instead?
@Splatschi
@Splatschi 4 ай бұрын
Hi @PhilippLackner thank you for this awesome tutorial. Is it also possible in xml instead of jetpack compose?
@bek_groider
@bek_groider Жыл бұрын
I think, in compose we shouldn't rely on libraries. Compose let's us customize manage view easily. It is not Xml anymore
@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.
@hocinehope8880
@hocinehope8880 Жыл бұрын
This guy is amazing
@mustafaammar551
@mustafaammar551 Жыл бұрын
Thank you bro
@catb801106
@catb801106 Жыл бұрын
Is it possible to detect the size of contentAfterLoading sub-conponent , iterate it and auto generate the shimmer effect box for that ?
@proandroiddevir
@proandroiddevir Жыл бұрын
Thanks 🙏🙏🙏
@KamalKumar-mi9lr
@KamalKumar-mi9lr Жыл бұрын
Hi man , Can we get any tutorial about activity tracking ?
@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?
@lovebondsin7071
@lovebondsin7071 11 ай бұрын
Can we do it in xml without compose and without use of any library?
@nfaical3
@nfaical3 Жыл бұрын
Thanks a lot :-)
@Deathfang89
@Deathfang89 Жыл бұрын
Great content man. What theme are you using in AS?
@ubersticks
@ubersticks Жыл бұрын
I think it is Xcode-Dark-Theme plugin.
@bestapps4709
@bestapps4709 11 ай бұрын
Exist an api that can make awesome texts with 2 colors etc...?
@techienomadiso8970
@techienomadiso8970 Жыл бұрын
Good stuff
@argahutama
@argahutama Жыл бұрын
Cool!
@Kanha0321
@Kanha0321 Жыл бұрын
One of the most underrated channel on KZbin 🥲. You surely deserve much more than this sir..
@hillalroy
@hillalroy Жыл бұрын
one android tv app with exoplayer tutorial plz
@DanielLuche
@DanielLuche 7 ай бұрын
Nice
@shubanaslam1983
@shubanaslam1983 Жыл бұрын
Osm
@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
@abdomostafa4512
@abdomostafa4512 Жыл бұрын
so complicated I prefer doing that with a library
@arthurgomes9248
@arthurgomes9248 10 ай бұрын
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 Жыл бұрын
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
Should You Use Compose State or StateFlow in Your ViewModels?
13:59
Philipp Lackner
Рет қаралды 76 М.
Throwing Swords From My Blue Cybertruck
00:32
Mini Katana
Рет қаралды 11 МЛН
Want to build a good API? Here's 5 Tips for API Design.
10:57
CodeOpinion
Рет қаралды 204 М.
The ULTIMATE Guide to Sharing Data Between Screens in Jetpack Compose
24:08
This Is My FAVORITE Error Handling Class
28:57
Philipp Lackner
Рет қаралды 30 М.
Bottom Navigation with Jetpack Compose
15:29
Stevdza-San
Рет қаралды 52 М.
If __name__ == "__main__" for Python Developers
8:47
Python Simplified
Рет қаралды 400 М.
Full Guide to Delegation in Kotlin  - Android Studio Tutorial
18:10
Philipp Lackner
Рет қаралды 69 М.
Shared ViewModel - Explained | Android Studio Tutorial
11:40
Stevdza-San
Рет қаралды 44 М.
Throwing Swords From My Blue Cybertruck
00:32
Mini Katana
Рет қаралды 11 МЛН