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...
This removes my accompanist dependency. Cheers ❤
Learn a lot, thank you!
The one and only a professional developer who does not wear any spec to write code!!
Phillip you are the best!! Thank you!! It is great tutorial like all yours tutorials !!
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.
That’s exactly what I was thinking. This shouldn’t have to be done with recomposition, but rather within draw phase only.
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
Thanks Philipp Lackner I just adapted it to my project and it looks like awesome 😁
Perfect! Thanks Philipp.
Cooollll Philips, i directly to implement to my own project , thanks a lot.
Hi @PhilippLackner
thank you for this awesome tutorial. Is it also possible in xml instead of jetpack compose?
Man, that`s wonderfull! Thank you!
It is compulsory to add ShimmerEffectComposeTheme if let say I want to put Scaffold instead?
Great content man.
What theme are you using in AS?
I think it is Xcode-Dark-Theme plugin.
When you make a video about chatGPT and its thread to android developers?
This guy is amazing
Thank you bro
One of the most underrated channel on RUclips 🥲. You surely deserve much more than this sir..
I think, in compose we shouldn't rely on libraries. Compose let's us customize manage view easily. It is not Xml anymore
do you believe that xml is going to be deprecated in the next five years?
no
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.
Thanks 🙏🙏🙏
Hi man , Can we get any tutorial about activity tracking ?
Can we do it in xml without compose and without use of any library?
Thanks a lot :-)
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?
it recomposes thousands, millions of times, which causes the screen to become laggy and choppy. How can we fix it?
Good stuff
Is it possible to detect the size of contentAfterLoading sub-conponent , iterate it and auto generate the shimmer effect box for that ?
Cool!
Exist an api that can make awesome texts with 2 colors etc...?
Nice
Can u create content that is more beginner friendly as well?
I have plenty of beginner level content on my channel, from the absolute basics to more advanced
@@PhilippLackner ohk. I am new to your channel. Surely will check
one android tv app with exoplayer tutorial plz
Osm
so complicated
I prefer doing that with a library
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.
First
hey Philipp thanks for great video! :) btw do you still you twitter if so drop you link pls