No video

RecyclerView and CardView for Jetpack Compose (LazyColumn and Card)

  Рет қаралды 23,167

CodingWithMitch

CodingWithMitch

Күн бұрын

The BEST android courses in the world: codingwithmitc...
In this video I show you what the RecyclerView and CardView equivalents are for jetpack compose. The jetpack compose version of a recyclerview is a LazyColumn. LazyColumnFor and LazyColumnForIndexed were deprecated as of jetpack compose version alpha 09. Now you are supposed to use LazyColumn.
The CardView equivalent for jetpack compose is Card.
Code: github.com/mit...
Follow me:
Instagram: / codingwithmitch
Twitter: / mitch_tabian
.
.

Пікірлер: 66
@vengateshm2122
@vengateshm2122 3 жыл бұрын
Thank You Mitch. I thought you will be writing adapters for recyclerview but it is as simple as Flutters' list item builder.
@miguelnuno928
@miguelnuno928 2 жыл бұрын
The dead of Recyclerview and his adapters children makes me happy hahaha
@mohdotnet
@mohdotnet 2 жыл бұрын
I am new to all three items . Kotlin mvvm and jetpack and I have to say your video is amazing.
@ricks1129
@ricks1129 2 жыл бұрын
Hi Mitch. Would like to thank you for being so considerate of your learners. A simple act of using white background in your Android Studio is so much comfortable. Don't know why almost everyone else is crazy about black screens where it is so difficult to figure out the code. Power-saving is essential but not at the cost of huge inconvenience for end users
@DS-bz4mz
@DS-bz4mz Жыл бұрын
I find it a lot easier to see when the text is on the darker background, plus it's easier on your eyes at night
@Shoan3D
@Shoan3D 3 жыл бұрын
Recycling ♻️ engagement
@typingcat
@typingcat 2 жыл бұрын
I read an article today that said "Declarative UI" is the new "mega" trend, and Compose will eventually replace the traditional XML UI in Android. Another article said that traditional XML layout stuff is the "Imperative UI". But seeing is the code, how is the method of creating the UI in Compose fundamentally different form the XML UI? It seems that it is creating the UI in the same way as the XML but looks shorter only because we are using default values for things that we had to explicitly declare in the XML such as the "android:layout_width". If Google had decided to make those attributes all omittable and default values were chosen for them, wouldn't it be basically the same as this Compose UI declaration? And they say that one of the "pros" of the Compose UI is that the code looks cleaner, but all those nested code blocks look more difficult to understand than the XML.
@wajdidaghlas3178
@wajdidaghlas3178 3 жыл бұрын
انت استاذ رائع......its mean: you are fantastic master
@tonnie7079
@tonnie7079 2 жыл бұрын
I like how you say Blah, Blah, Blah at 15:23, pleasure listening to you.
@juanrincon4110
@juanrincon4110 3 жыл бұрын
Here is my prideful engagement!!
@muhammedshahin6299
@muhammedshahin6299 Жыл бұрын
Thank you, mitch. You're awesome
@anuradhaamarasinghe9649
@anuradhaamarasinghe9649 3 жыл бұрын
Thanks Mitch. Here goes the engagement
@user-hl3br5qi6f
@user-hl3br5qi6f 3 жыл бұрын
Thank you for the video!
@LetrixAR
@LetrixAR 3 жыл бұрын
Waiting for loading images. I'm trying with CoilImage (from accompanist) but the scroll is really weird.
@codingwithmitch
@codingwithmitch 3 жыл бұрын
I'll show you a simple method tomorrow
@HienNguyen-xn7tr
@HienNguyen-xn7tr 3 жыл бұрын
I love BBM
@dipveo3666
@dipveo3666 3 жыл бұрын
Thank you Mitch !
@onlinechatter8578
@onlinechatter8578 3 жыл бұрын
looking like an HTML tags... missing the tag!!😁.. lovely
@khaledqwas8851
@khaledqwas8851 3 жыл бұрын
Thank you
@danyelsh874
@danyelsh874 2 жыл бұрын
thanks mitch!
@speedboy93640
@speedboy93640 3 жыл бұрын
Hi Mitch! Great content!
@ailacherim
@ailacherim 3 жыл бұрын
Awesome, thanks!
@bboydarknesz
@bboydarknesz 3 жыл бұрын
With my low spec laptop, mine is smooth. I donno why, anyway thanks for new LazyColumn function, that's amazing function
@hoonjung2143
@hoonjung2143 2 жыл бұрын
Great stuff! Thank you :)
@roshanfx369
@roshanfx369 3 жыл бұрын
Nice!!
@erickramones2167
@erickramones2167 3 жыл бұрын
I wish there was some visual representation of the code when building the components like when the xml was used.
@anindyaray1913
@anindyaray1913 3 жыл бұрын
hey, you can preview what you are building using the preview annotation and calling the function you want to see inside the function annotated with preview.
@raghund1481
@raghund1481 3 жыл бұрын
Is there a way to add a scrollbar thumb here? I have a lot of rows here and need a scrollbar thumb and I just cant find a way to add one. Pls help. Thanks.
@abdelrhmantalat9813
@abdelrhmantalat9813 3 жыл бұрын
Hi Mitch, Can you tell us why we are not using @Preview in our components?
@codingwithmitch
@codingwithmitch 3 жыл бұрын
I'm not because its slow and it makes me angry
@JitubhaiyaPhysics
@JitubhaiyaPhysics 3 жыл бұрын
Mitch
@ahmedrageharc
@ahmedrageharc 2 жыл бұрын
thanks for your efforts list is too laggy because bitmap drawable is too large , when you put file in default drawable dir android system rescale it by 2X or 3X to display ,which means that you are using very large images when loading list
@MdMainuddin-ev6tc
@MdMainuddin-ev6tc 3 жыл бұрын
Amazing
@YouGuto
@YouGuto 3 жыл бұрын
Engagement++ Like++
@anudeepananth
@anudeepananth 3 жыл бұрын
Hey Mitch... there is no way in compose to show if user is overscrolling(when reached the end of list or the beginning of list), the visual feedback is built in when using XML and also the swipe down to refresh is not possible in compose as of now... is that right?
@AleuqabAli
@AleuqabAli 3 жыл бұрын
Hi great vedio but i wonder what font you are using 👌
@CommanderSteps
@CommanderSteps 3 жыл бұрын
Thank you!
@diodio6335
@diodio6335 3 жыл бұрын
How to setup animation when scroll the list to the top and the end?
@moussawade5957
@moussawade5957 3 жыл бұрын
Thank u Mitch, so why you’re not used ConstraintLayouts in the Card(){} ? Thank u again for this courses
@codingwithmitch
@codingwithmitch 3 жыл бұрын
You can. I'll cover constraint layout later at some time
@terencejumba1939
@terencejumba1939 3 жыл бұрын
creating adapter seems it will deprecate soon :) :)
@Lars131
@Lars131 3 жыл бұрын
Shouldn't convert the .png image to .webp?
@hanamanth_vlogs6565
@hanamanth_vlogs6565 3 жыл бұрын
👍👍
@hellespont5072
@hellespont5072 3 жыл бұрын
Does anybody know how to access MaterialTheme.shapes.small/medium etc? I tried googling it and can't find any info, seems to have changed since Mitch made this video. Official Jetpack Compose Theming documentation uses the same syntax but I can't access it. I checked gradle file and as far as I can tell I have all the correct imports. Anybody know the new way to do it??
@johnybaby9574
@johnybaby9574 3 жыл бұрын
great!
@mehdiparsaei1867
@mehdiparsaei1867 3 жыл бұрын
The best.
@HelloBayzid
@HelloBayzid 3 жыл бұрын
❤❤❤❤
@ChrisAthanas
@ChrisAthanas 3 жыл бұрын
Engagement para ti
@hanac5586
@hanac5586 Жыл бұрын
woohoo
@hanac5586
@hanac5586 Жыл бұрын
I mean thank you
@Mohit-gb9dv
@Mohit-gb9dv 2 жыл бұрын
Begiest difference in java and kotlin Semicolons are replaced by brackets 😂😂
@oleg_dnipro
@oleg_dnipro 3 жыл бұрын
how to load image from resources in Compose?
@hellespont5072
@hellespont5072 3 жыл бұрын
Hey did you find a way to do it? Is it using painterResource??
@oleg_dnipro
@oleg_dnipro 3 жыл бұрын
@@hellespont5072 Image( painter = painterResource(R.drawable.margarita), contentDescription = "Content description for visually impaired", Modifier.size(100.dp) )
@hellespont5072
@hellespont5072 3 жыл бұрын
👌👨‍💻🙌
@alisamadzadeh3195
@alisamadzadeh3195 3 жыл бұрын
why don't use xml for ui?
@mukswilly
@mukswilly 3 жыл бұрын
This is a compose tutorial.
@CommanderSteps
@CommanderSteps 3 жыл бұрын
That will be legacy stuff on Compose release day.
@samha1513
@samha1513 3 жыл бұрын
oh god it was as leggy as my windows old surface pro 3
@denihilhamsyah
@denihilhamsyah Жыл бұрын
weff
@ulugg3529
@ulugg3529 3 жыл бұрын
Thank You
@Zeeshan-Syed
@Zeeshan-Syed 3 жыл бұрын
👏
@ahmadbanikamali6936
@ahmadbanikamali6936 2 жыл бұрын
thank you
@staceyrichards8656
@staceyrichards8656 3 жыл бұрын
Many thanks
Asynchronously Load Images with Jetpack Compose
10:03
CodingWithMitch
Рет қаралды 15 М.
Shimmer Loading Animation with Jetpack Compose
43:24
CodingWithMitch
Рет қаралды 10 М.
The Joker kisses Harley Quinn underwater!#Harley Quinn #joker
00:49
Harley Quinn with the Joker
Рет қаралды 39 МЛН
Touching Act of Kindness Brings Hope to the Homeless #shorts
00:18
Fabiosa Best Lifehacks
Рет қаралды 17 МЛН
王子原来是假正经#艾莎
00:39
在逃的公主
Рет қаралды 25 МЛН
Constraint Layout with Jetpack Compose
25:02
CodingWithMitch
Рет қаралды 11 М.
LazyColumn - Forget about RecyclerView Adapter - Jetpack Compose
10:32
Coding Was HARD Until I Learned These 5 Things...
8:34
Elsa Scola
Рет қаралды 342 М.
Animations Introduction (Jetpack Compose)
22:44
CodingWithMitch
Рет қаралды 8 М.
I built 10 web apps... with 10 different languages
14:23
Fireship
Рет қаралды 1,6 МЛН
The Most Legendary Programmers Of All Time
11:49
Aaron Jack
Рет қаралды 555 М.
Hilt Dependency Injection (Kotlin Beginner Example)
21:20
CodingWithMitch
Рет қаралды 42 М.
Fragments with Jetpack Compose (Interoperability)
15:03
CodingWithMitch
Рет қаралды 42 М.
Build a productivity web app that's NOT a todo list
18:55
Learn With Jason
Рет қаралды 73 М.
The Joker kisses Harley Quinn underwater!#Harley Quinn #joker
00:49
Harley Quinn with the Joker
Рет қаралды 39 МЛН