Asynchronously Load Images with Jetpack Compose

  Рет қаралды 15,356

CodingWithMitch

CodingWithMitch

Күн бұрын

Пікірлер: 80
@32zim32
@32zim32 3 жыл бұрын
Hey Mitch, AmbientContext now is LocalContext. So you have to remake video again. ))
@mohamansani6836
@mohamansani6836 4 жыл бұрын
Best Android course ever. This is exactly what I've been looking for. I've been following your courses on pluralsight Mitch, you're doing a great job. Thanks
@Shoan3D
@Shoan3D 4 жыл бұрын
You funny 😆 Mitch, "don't stop now, guy". Another engagement coming right now. Thank you for the image loading hint and utility Composable, didn't know it was that easy to make. Awesome video, very helpful.
@alexisarcegomez8698
@alexisarcegomez8698 4 жыл бұрын
Here is another well deserved engaged for you Mitch, awesome work
@LetrixAR
@LetrixAR 4 жыл бұрын
Now it's working fine! Thanks! I can finally try to port my app.
@tonnie7079
@tonnie7079 3 жыл бұрын
Mitch nice lesson, I used Coil (for Jetpack) and wrote just 3 lines inside the Image Composable to load.
@anudeepananth
@anudeepananth 3 жыл бұрын
I am using GlideImage with Jetpack compose, once the image is finished loading I would like to save it as a Bitmap. In XML this was quite straight forward, we would do something like this: val bmp: Bitmap = image_view.drawToBitmap() //image_view is the XML id of the ImageView What is the jetpack compose equivalent of this?
@akashkumardas6521
@akashkumardas6521 4 жыл бұрын
After designing in flutter found designing with compose too slow means very very slow. But I liked the video because you made it. Thank you so much
@codingwithmitch
@codingwithmitch 4 жыл бұрын
Ya flutter is faster for sure. The hot reload is nice
@petars7851
@petars7851 4 жыл бұрын
Engaging with Mitch. Feels so good.
@codingwithmitch
@codingwithmitch 3 жыл бұрын
Lol thanks
@muhammadshayankhan3066
@muhammadshayankhan3066 4 жыл бұрын
Engagement. Glide has an image placeholder property, why not use that?
@codingwithmitch
@codingwithmitch 4 жыл бұрын
Basically no reason
@ehsanshadi810
@ehsanshadi810 3 жыл бұрын
Thanks Mitch, love the content. You put @Composable annotation on loadPicture function and I couldn't figure out why. Can you give me a hint? I really appreciate.
@mukswilly
@mukswilly 4 жыл бұрын
Why didn't you use a placeholder instead? Just curious.
@codingwithmitch
@codingwithmitch 4 жыл бұрын
I wanted to see if it worked this way with mutablestate and then just left it because it did
@mukswilly
@mukswilly 4 жыл бұрын
@@codingwithmitch so basically, "If it works, don't touch it" 😅
@codingwithmitch
@codingwithmitch 4 жыл бұрын
@@mukswilly I think that's a good policy 😂
@vengateshm2122
@vengateshm2122 4 жыл бұрын
Thank You. Is AmbientContext is same as Context? We are not creating any views in loadPicture function then why it is still annotated as composable? Please explain MItch.
@yaroslavkulinich7155
@yaroslavkulinich7155 4 жыл бұрын
It's annotated as Composable because Mitch gets Context from the AmbientContext element that's available only from the Composable function. If you do the same with a regular function, you need to pass a Context parameter to that function (you get it from the Parent Composable anyway).
@codingwithmitch
@codingwithmitch 4 жыл бұрын
Yes AmbientContext is the context. I make the function a composable so I can access the context through AmbientContext. Otherwise you could remove the Composable annotation and pass the context as function argument
@vengateshm2122
@vengateshm2122 4 жыл бұрын
@@yaroslavkulinich7155 Thank You.
@vengateshm2122
@vengateshm2122 4 жыл бұрын
@@codingwithmitch Thank You.
@YouGuto
@YouGuto 4 жыл бұрын
Engaging like a Boss!
@pitter6282
@pitter6282 3 жыл бұрын
featured_image are all null from ur api. I couldn't display picture now. what happened to it? could you fix please.
@Kshitijskumar
@Kshitijskumar 4 жыл бұрын
Hey mitch. Here is your engagement! Doing great job. Learning literally alot from you!!
@KIRILLINGUSS21
@KIRILLINGUSS21 4 жыл бұрын
LazyColumn is the best one. Love your engagement
@anuradhaamarasinghe9649
@anuradhaamarasinghe9649 3 жыл бұрын
Thanks, Mitch, and yes engaged!
@devanshu_on_youtube
@devanshu_on_youtube 3 жыл бұрын
Hey Mitch, doing a great job :thumbs_up: . One question though, any reason why you don't use default arguments that much in functions. My first instinct when you declared the default red id constant in that loadImage composable was that you'd make it a default argument for the placholder, in case someone wouldn't want to change it while consuming the composable. Just makes the client code less verbose..
@shalinikhosla971
@shalinikhosla971 3 жыл бұрын
Heyy Mitch! Thanks for the Videos.
@mehulbisht9708
@mehulbisht9708 4 жыл бұрын
6:37 that instant regret 😂😂
@codingwithmitch
@codingwithmitch 4 жыл бұрын
That is what happens when I try to change things live on video. I always tell myself: "MITCH STICK TO THE SCRIPT"
@sinedgars
@sinedgars 3 жыл бұрын
@@codingwithmitch love it. That`s show you are not some ultra smart cyborg :D
@micheekisukilakamba1435
@micheekisukilakamba1435 Жыл бұрын
Your video is amazing ! Great!👏👏👏
@speedboy93640
@speedboy93640 3 жыл бұрын
Hi Mitch! Great content!
@MuhammadNaveed2016
@MuhammadNaveed2016 4 жыл бұрын
First Engagement Today
@alexissuarezalvarez5622
@alexissuarezalvarez5622 2 жыл бұрын
Hi I am doing something similar but with yotubeplayerview by PierfrancescoSoffritti, the loading of videos is not good. Could you give me some good tips on how to manage this little project?
@ChrisAthanas
@ChrisAthanas 4 жыл бұрын
Engaged ion drives this time
@shivamsethi3829
@shivamsethi3829 4 жыл бұрын
Nice work as usual
@tarikhusin1767
@tarikhusin1767 2 жыл бұрын
i think "Coil" library is the easiest for image loading in Compose
@DS-bz4mz
@DS-bz4mz 2 жыл бұрын
yeah, it made it a lot easier to digest imo
@venkatesh4307
@venkatesh4307 4 жыл бұрын
Hey Mitch please help me on this error! Class 'RecipeListFragment' is not abstract and does not implement abstract base class member public abstract fun prepareCall(contract: ActivityResultContract, callback: ActivityResultCallback): ActivityResultLauncher defined in androidx.fragment.app.Fragment This error is appearing on fragment name. I implemented the prepare call methods. Then i got an error "prepare call doesn't override nothing.." please help me any one..
@32zim32
@32zim32 3 жыл бұрын
One question. You are not using remember function here. Will it redownload images after every recomposition?
@dmytromarchuk3023
@dmytromarchuk3023 3 жыл бұрын
yes, remember is not called so it will be called once again
@fourcade7851
@fourcade7851 4 жыл бұрын
HI Mitch how are you bro )) thanks for video ))
@zaidabbasi1991
@zaidabbasi1991 2 жыл бұрын
Here's your engagement Mitch.
@sinedgars
@sinedgars 3 жыл бұрын
kaboom, engadge, good one. like glide, no future problem
@hellespont5072
@hellespont5072 3 жыл бұрын
Knowledge bombs have been dropped! 💣
@janfranco2331
@janfranco2331 4 жыл бұрын
Great tutorial! Thanks!
@terencejumba1939
@terencejumba1939 3 жыл бұрын
you teach so well
@HelloBayzid
@HelloBayzid 4 жыл бұрын
Best Teacher!
@AlgeriaHere
@AlgeriaHere 4 жыл бұрын
very helpful , thank you so much
@muhammedshahin6299
@muhammedshahin6299 2 жыл бұрын
Thanks, mitch
@ailacherim
@ailacherim 4 жыл бұрын
Thanks 👍
@iJuce
@iJuce 4 жыл бұрын
that beard looks good on you 🔥👌
@codingwithmitch
@codingwithmitch 4 жыл бұрын
Thanks took me a long time to grow that baby
@danyelsh874
@danyelsh874 3 жыл бұрын
wow mitch thanks
@JATHubb
@JATHubb 4 жыл бұрын
Yo Mitch
@codingwithmitch
@codingwithmitch 4 жыл бұрын
Yo jit
@staceyrichards8656
@staceyrichards8656 3 жыл бұрын
Thank you!
@digitalluxury2033
@digitalluxury2033 2 жыл бұрын
شكرا جزيلاااا or thanks as you like 😆😆😆😆
@johnybaby9574
@johnybaby9574 4 жыл бұрын
here's my engagement
@osezelejohn3214
@osezelejohn3214 2 жыл бұрын
no longer Image(bitmap = imageResource(id= R.drawable.empty_meal) now solution is: val image: Painter = painterResource(id = R.drawable.composelogo) Image(painter = image,contentDescription = "")
@tom-wz5le
@tom-wz5le 3 жыл бұрын
Thanks
@prashantsurti5788
@prashantsurti5788 4 жыл бұрын
Engagement
@adnanhaider9949
@adnanhaider9949 4 жыл бұрын
You awesome bro
@mehdiparsaei1867
@mehdiparsaei1867 4 жыл бұрын
Great.
@electricalprogrammer456
@electricalprogrammer456 2 жыл бұрын
🐐🐐🐐🐐
@jknair0
@jknair0 4 жыл бұрын
You just made vegans unhappy. Apart from that, I really like how clear your explanations are. Keep making good content!
@nurhadi-dev
@nurhadi-dev 4 жыл бұрын
great,, super duper engagement...
@roshanfx369
@roshanfx369 4 жыл бұрын
Great!!
@leetcodeforbeginners
@leetcodeforbeginners 4 жыл бұрын
great
@ВячеславПойденко
@ВячеславПойденко 3 жыл бұрын
Спасибо
@jayeshsuthar5590
@jayeshsuthar5590 4 жыл бұрын
Hey Mitch 👋 What's your thought on Compose? Isn't it bit extra work? All the nested code and everything. It is not looking so appealing!
@yogenp5763
@yogenp5763 3 жыл бұрын
I wish I could like multiple times
@KevinMeneses
@KevinMeneses 4 жыл бұрын
First :v
@unknownus3r
@unknownus3r 4 жыл бұрын
Engagement
Capturing User Input with Jetpack Compose (EditText)
11:11
CodingWithMitch
Рет қаралды 14 М.
Animations Introduction (Jetpack Compose)
22:44
CodingWithMitch
Рет қаралды 8 М.
Jaidarman TOP / Жоғары лига-2023 / Жекпе-жек 1-ТУР / 1-топ
1:30:54
Почему Катар богатый? #shorts
0:45
Послезавтра
Рет қаралды 2 МЛН
She wanted to set me up #shorts by Tsuriki Show
0:56
Tsuriki Show
Рет қаралды 8 МЛН
Coil - Image Loading Library with Jetpack Compose
9:00
Stevdza-San
Рет қаралды 25 М.
RecyclerView and CardView for Jetpack Compose (LazyColumn and Card)
19:53
Image Caching with Coil Compose - Everything You Need to Know
21:28
Philipp Lackner
Рет қаралды 20 М.
LazyColumn - Forget about RecyclerView Adapter - Jetpack Compose
10:32
Pagination with Jetpack Compose
23:15
CodingWithMitch
Рет қаралды 15 М.
SearchView Toolbar with Jetpack Compose
15:28
CodingWithMitch
Рет қаралды 17 М.
Loading Images - everything you need to know - Jetpack Compose #7
10:58
Ahmed Guedmioui
Рет қаралды 2,1 М.
Jaidarman TOP / Жоғары лига-2023 / Жекпе-жек 1-ТУР / 1-топ
1:30:54