Thank God! The old days of recyclerview are gone. Very well explained.
@hadjsaidaoumer305812 күн бұрын
Thanks Philipp 🥰 , You are the best teacher 🙏
@yunusemrearslan36963 жыл бұрын
A new era has just begun in Android Development.
@nilanjanmukhopadhyay83693 жыл бұрын
Not only in Android. I hope all other front-end frameworks would follow this trend. Front-end has never been something that is brain intensive. Still, its messiness has always freaked out developers. It's a new era.
@AleXoTroNАй бұрын
As a long since flutter developer, i just love how lists are created in compose. Its soooo much easier
@TiagoDvl3 жыл бұрын
I truly think your content should reach a higher audience. Thank you so much for this.
@thyagonevessilvestre12482 жыл бұрын
I agree, at least here in Brazil Phillip is well known as a reference in Android development.
@durrium3 жыл бұрын
Following your tutorial series and I gotta say, you are doing agreat job! Many poeple dont zoom in on the variables and functions like you do :) Keep it up!
@PhilippLackner3 жыл бұрын
Awesome, thank you!
@animecontent232 Жыл бұрын
oh my gosh, bro, how simple it is, I was straggling in xml to create a list with fuc*ken adapter and many functions. I love you bro.
@alexwhb1223 жыл бұрын
Fantastic video! I actually can't believe how much better JetPack Compose is than old school Android view programing. I literally can write what would have taken me days in hours or less. I'm so excited about the possibilities this allows us.
@dawidtyburek3 жыл бұрын
As per todays Reddit: Compose is when you're tired of needing to create 7 files to display a list of items without a header 🤠
@halahmilksheikh3 жыл бұрын
Someone needs to start a gofundme to get this man a transparent mic. Kidding, I love your stuff! Very thorough.
@tonnie70793 жыл бұрын
My takeaway - If you only have a count then use items (100) { i -> }. If you have a list and you need an Index then use itemIndexed(listOf("s1", "s2")) { i, s -> }
@mrpi2302 жыл бұрын
I liked LazyColumn and your great teaching style . Thank You. 🙏
@RobertMair803 жыл бұрын
Chuck Norris of KZbin's Android Tutorials 👌
@andrewboy04113 жыл бұрын
Thanks Phillipp, with you I am learning a lot, I understand you while with the other people I haven't been able to do it.
@omargaccetta65792 жыл бұрын
My God, I can't even believe this can replace recyclerview, so simple and succinct.
@faysaldeve3852 жыл бұрын
Your explanation is very wonderful and you are a beautiful person and artist. Thank you for this excellent course
@Laithabujbara3 жыл бұрын
Keep up the good work 💥
@LiranBarsisa3 жыл бұрын
I have some questions: 1. Is Compose more efficient than XML and/or direct creation of Views? It seems like it could get many instantiations, no? 2. How does Compose work exactly? 3. Here you show a replacement for RecyclerView, but what about how you load data dynamically and need to set it? You will need to set an ID per item , too, no?
@resulakn6882 жыл бұрын
i have same issue
@nayls198711 ай бұрын
In case anyone gets stuck like I did, it looks like you have to actually have more items than will fit on screen, or the items won't actually scroll. i.e. - the last example shown won't scroll because everything already fits on screen.
@twojaStara6982 жыл бұрын
Thanks for amazing course. I love this so much
@kravets_coding2 жыл бұрын
Looks much better then recyclerView. Great tutorial to get familiar with the concept. Thank you. Still I have questions I have to find answers for before I can trust the lazy column thing: does it recycle old elements as we scroll, how to implement scroll bar, what about pagination.
@tomsaju19703 жыл бұрын
Thanks for the tutorials Philip
@JohanMosqueraYT3 жыл бұрын
Thank you Phillip, the best Android Tutor 🔥
@xavierrispal96053 жыл бұрын
Thanks Philipp for this quite interesting video. Have you tested LazyColumn with a more sophisticated usecase ? I agree, recycler views are way too complex but when you master them, you can display in the same list quite different items according to their types and that's quite powerful. The dependency from Hannes Dorfmann is very useful to reduce boiler plate.
@PhilippLackner3 жыл бұрын
The same is possible in compose, just use an if-statement to determine which composable to show for an item. You can also use multiple items blocks to display multiple different items together. No more XML layout, no more viewholders, no more adapters
@xavierrispal96053 жыл бұрын
@@PhilippLackner Thanks, I will give it a try :)
@hpmusicbytes2 жыл бұрын
@@PhilippLackner I tried loading different composable in lazy column.but it affects the smoothness in scrolling of lazy colmun. I tried including lazy row as item in lazy column. Any work around on this
@coffeedude2 жыл бұрын
@@hpmusicbytes get better hardware (jk)
@hpmusicbytes2 жыл бұрын
@@coffeedude we cant demand users for that. U get that?
@colinf62663 жыл бұрын
you are a legend! thank you
@sarahmohamed29732 жыл бұрын
it is really super easy than the old recycler view approach
@saharas76352 жыл бұрын
Great, thank you philipp
@erickramones21673 жыл бұрын
please consider using a gist. maybe doing commits for each example.
@abhas_kr3 жыл бұрын
Lazy column is similar to something I used to dreamt of when using Recycler View in XML.
@OmarHawari2 жыл бұрын
For real Recycler View is such a pain in the ass
@haoqian14652 жыл бұрын
Nice video. Can you make a video on using LazyColumn with Pagination?
@amineayachi3353 жыл бұрын
oh god finaly i dont have to create adapters for lists thanks
@swiftyassistant12252 жыл бұрын
Hi Philippe, thank you for this very good tutorial! Only I have a problem, when I launch my app on my physical phone, under android 12, when I scroll it's really not fluid and I don't understand why!
@Rafael-hk9pg3 жыл бұрын
Hi Philipp, thanks again for your amazing content. I was wondering if you could push me into the right direction: I am trying to create a list where the span size is different regarding the listitem position. (if (position % 3 > 0) 1 else 2). How to achieve this?
@nipunkumarit21683 жыл бұрын
Lazy column is made for relaxed our finger , because recycler view is just too lengthy to implement and also so may files for this....
@cinnybun7393 жыл бұрын
Lazy column is godly.
@andriibibik39 Жыл бұрын
Thats nice. LazyColumn is easy.
@JujareVinayak2 жыл бұрын
Pls do a tutorial when there are different types of viewHolder(item types)
@elijahonduso3 жыл бұрын
Man you're a god
@akthamahmed21713 жыл бұрын
Nice 🧡 Finally No More Adapter And ViewHolder 😅
@dmytromarchuk30233 жыл бұрын
Just wandering if there is out of the box implementation for paging in Jetpack Compose
@bismeetsingh3523 жыл бұрын
Can you explain those scopes?
@HaiderAli-gi1fn Жыл бұрын
this was very nice i lovw it
@tommy9x3 жыл бұрын
Get lost from item index, why there is no int parameter in the function?
@MuhammadYousaf-tp9mi4 ай бұрын
how are you using $it for indexing where did it come from??
@cc_1enjoyer4874 ай бұрын
brother you should replace item with items, I made the same mistake, LazyColumn{ items(5000){
@AAKASHPanchal-s2f8 ай бұрын
Thanks Dude 😊
@SahilGargjava3 жыл бұрын
I tried the same approach but for me, LazyColumn stuck on first scroll and then after that it scrolls smoothly.
@valizeth40733 жыл бұрын
Using jebrains compose but it's an excellent feature
@TLTthatsME2 жыл бұрын
Can u use groupby?
@aliziyad64733 жыл бұрын
I'd suggest you use contentPadding and Arrangement to apply padding on LazyColumn. contentPadding is used to add the padding before the first item and after the last item. Arrangement is used to add spacing between each item.
@omdeep4137 Жыл бұрын
Can this work as a table
@a-zlearning6259 Жыл бұрын
Why am I thinking that XML is much simpler and easier? 😔 I mean it is so complicated and even when creating an Edit text you should change the state and take care of it, we cannot even just set an on click listener for a button to change a textview easily, it is so complicated and much code to do in jetpack compose. 😔
@l20101211 ай бұрын
Because this compose thing is so not good. XML was better. Also I don't understand why the collegue said you have to create a lot of files with XML. Only two files. And only 2 files from Recyclerview. I think you now got the same coding things like in flutter. Why? If I want to create this ugly one on file shot codes and states I just go to flutter/dart. Android was the nice XML + code style.
@l20101211 ай бұрын
Also if u create components outside from the main file, you have to create a lot of other components too. It is like a flutter dev don't want to use android and kotlin anymore, so a flutter dev wrote an ugly wrapper for android native :)
@OEThe112 жыл бұрын
Game changing stuff
@thyagonevessilvestre12482 жыл бұрын
Looks like a dream...
@DanielLuche8 ай бұрын
Very good
@sudarshansingh10724 ай бұрын
Thanks to jetpack, life is easier now. (Isn't is inspired by Flutter)
@newbiegameplayy3 жыл бұрын
So we dont need recycler again?
@matt-g-recovers3 жыл бұрын
I love it!!
@itmeocon25 Жыл бұрын
If use Scaffold nested column or lazycolumn, it won't scroll
@zepra21332 жыл бұрын
easier from recycle view 👏
@soma7891 Жыл бұрын
For this singley Jetpack Compose is better than XML
@rahathossainhimel71773 жыл бұрын
Thank You.
@sandeepkute48453 жыл бұрын
Bro can you please create an zoom or Google meet app clone
@hossein.no1618 Жыл бұрын
Perfect
@somith163 жыл бұрын
Sir how many topics to cover
@ПавелЗубко-ц8ч2 жыл бұрын
thx
@alfian35703 жыл бұрын
Lazy column is very simple than recylerview.
@bboydarknesz3 жыл бұрын
Why you keep look your keyboard XD
@Khdkss Жыл бұрын
where is the so called adaaaapter😂😂
@nightfury139011 ай бұрын
WTH so simple
@anudeepananth3 жыл бұрын
This is great... but the performance is beyond horrible... Recycler views run buttery smooth even on android phones which are 5-6yrs old... Just waiting for LazyColumn to get there performance-wise... LazyColumns stutter even on modern flagship phones...
@RodrigoAbreuOliveira Жыл бұрын
show!!!
@karentechnologies39902 жыл бұрын
Great and short video. but why you didn't mention how to implement onItemClickListener()?
@PhilippLackner2 жыл бұрын
because that's not related to lists, you just attach a clickable modifier for that
@str22542 жыл бұрын
I've created a list with 1000 items and scrolling feels really lag for the first seconds or 100 items, the it gets smoother. Do you have any idea why? LazyColumn { itemsIndexed((999 downTo 1).toList()) { index, item -> Text( textAlign = TextAlign.Center, modifier = Modifier .fillMaxWidth() .padding(16.dp), text = "$index: $item" ) } }