Lists - Android Jetpack Compose - Part 8

  Рет қаралды 56,575

Philipp Lackner

Philipp Lackner

Күн бұрын

Пікірлер: 88
@bytegraftkids
@bytegraftkids 11 ай бұрын
Thank God! The old days of recyclerview are gone. Very well explained.
@hadjsaidaoumer3058
@hadjsaidaoumer3058 12 күн бұрын
Thanks Philipp 🥰 , You are the best teacher 🙏
@yunusemrearslan3696
@yunusemrearslan3696 3 жыл бұрын
A new era has just begun in Android Development.
@nilanjanmukhopadhyay8369
@nilanjanmukhopadhyay8369 3 жыл бұрын
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
@AleXoTroN Ай бұрын
As a long since flutter developer, i just love how lists are created in compose. Its soooo much easier
@TiagoDvl
@TiagoDvl 3 жыл бұрын
I truly think your content should reach a higher audience. Thank you so much for this.
@thyagonevessilvestre1248
@thyagonevessilvestre1248 2 жыл бұрын
I agree, at least here in Brazil Phillip is well known as a reference in Android development.
@durrium
@durrium 3 жыл бұрын
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!
@PhilippLackner
@PhilippLackner 3 жыл бұрын
Awesome, thank you!
@animecontent232
@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.
@alexwhb122
@alexwhb122 3 жыл бұрын
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.
@dawidtyburek
@dawidtyburek 3 жыл бұрын
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 🤠
@halahmilksheikh
@halahmilksheikh 3 жыл бұрын
Someone needs to start a gofundme to get this man a transparent mic. Kidding, I love your stuff! Very thorough.
@tonnie7079
@tonnie7079 3 жыл бұрын
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 -> }
@mrpi230
@mrpi230 2 жыл бұрын
I liked LazyColumn and your great teaching style . Thank You. 🙏
@RobertMair80
@RobertMair80 3 жыл бұрын
Chuck Norris of KZbin's Android Tutorials 👌
@andrewboy0411
@andrewboy0411 3 жыл бұрын
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.
@omargaccetta6579
@omargaccetta6579 2 жыл бұрын
My God, I can't even believe this can replace recyclerview, so simple and succinct.
@faysaldeve385
@faysaldeve385 2 жыл бұрын
Your explanation is very wonderful and you are a beautiful person and artist. Thank you for this excellent course
@Laithabujbara
@Laithabujbara 3 жыл бұрын
Keep up the good work 💥
@LiranBarsisa
@LiranBarsisa 3 жыл бұрын
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?
@resulakn688
@resulakn688 2 жыл бұрын
i have same issue
@nayls1987
@nayls1987 11 ай бұрын
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.
@twojaStara698
@twojaStara698 2 жыл бұрын
Thanks for amazing course. I love this so much
@kravets_coding
@kravets_coding 2 жыл бұрын
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.
@tomsaju1970
@tomsaju1970 3 жыл бұрын
Thanks for the tutorials Philip
@JohanMosqueraYT
@JohanMosqueraYT 3 жыл бұрын
Thank you Phillip, the best Android Tutor 🔥
@xavierrispal9605
@xavierrispal9605 3 жыл бұрын
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.
@PhilippLackner
@PhilippLackner 3 жыл бұрын
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
@xavierrispal9605
@xavierrispal9605 3 жыл бұрын
@@PhilippLackner Thanks, I will give it a try :)
@hpmusicbytes
@hpmusicbytes 2 жыл бұрын
@@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
@coffeedude
@coffeedude 2 жыл бұрын
@@hpmusicbytes get better hardware (jk)
@hpmusicbytes
@hpmusicbytes 2 жыл бұрын
@@coffeedude we cant demand users for that. U get that?
@colinf6266
@colinf6266 3 жыл бұрын
you are a legend! thank you
@sarahmohamed2973
@sarahmohamed2973 2 жыл бұрын
it is really super easy than the old recycler view approach
@saharas7635
@saharas7635 2 жыл бұрын
Great, thank you philipp
@erickramones2167
@erickramones2167 3 жыл бұрын
please consider using a gist. maybe doing commits for each example.
@abhas_kr
@abhas_kr 3 жыл бұрын
Lazy column is similar to something I used to dreamt of when using Recycler View in XML.
@OmarHawari
@OmarHawari 2 жыл бұрын
For real Recycler View is such a pain in the ass
@haoqian1465
@haoqian1465 2 жыл бұрын
Nice video. Can you make a video on using LazyColumn with Pagination?
@amineayachi335
@amineayachi335 3 жыл бұрын
oh god finaly i dont have to create adapters for lists thanks
@swiftyassistant1225
@swiftyassistant1225 2 жыл бұрын
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-hk9pg
@Rafael-hk9pg 3 жыл бұрын
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?
@nipunkumarit2168
@nipunkumarit2168 3 жыл бұрын
Lazy column is made for relaxed our finger , because recycler view is just too lengthy to implement and also so may files for this....
@cinnybun739
@cinnybun739 3 жыл бұрын
Lazy column is godly.
@andriibibik39
@andriibibik39 Жыл бұрын
Thats nice. LazyColumn is easy.
@JujareVinayak
@JujareVinayak 2 жыл бұрын
Pls do a tutorial when there are different types of viewHolder(item types)
@elijahonduso
@elijahonduso 3 жыл бұрын
Man you're a god
@akthamahmed2171
@akthamahmed2171 3 жыл бұрын
Nice 🧡 Finally No More Adapter And ViewHolder 😅
@dmytromarchuk3023
@dmytromarchuk3023 3 жыл бұрын
Just wandering if there is out of the box implementation for paging in Jetpack Compose
@bismeetsingh352
@bismeetsingh352 3 жыл бұрын
Can you explain those scopes?
@HaiderAli-gi1fn
@HaiderAli-gi1fn Жыл бұрын
this was very nice i lovw it
@tommy9x
@tommy9x 3 жыл бұрын
Get lost from item index, why there is no int parameter in the function?
@MuhammadYousaf-tp9mi
@MuhammadYousaf-tp9mi 4 ай бұрын
how are you using $it for indexing where did it come from??
@cc_1enjoyer487
@cc_1enjoyer487 4 ай бұрын
brother you should replace item with items, I made the same mistake, LazyColumn{ items(5000){
@AAKASHPanchal-s2f
@AAKASHPanchal-s2f 8 ай бұрын
Thanks Dude 😊
@SahilGargjava
@SahilGargjava 3 жыл бұрын
I tried the same approach but for me, LazyColumn stuck on first scroll and then after that it scrolls smoothly.
@valizeth4073
@valizeth4073 3 жыл бұрын
Using jebrains compose but it's an excellent feature
@TLTthatsME
@TLTthatsME 2 жыл бұрын
Can u use groupby?
@aliziyad6473
@aliziyad6473 3 жыл бұрын
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
@omdeep4137 Жыл бұрын
Can this work as a table
@a-zlearning6259
@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. 😔
@l201012
@l201012 11 ай бұрын
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.
@l201012
@l201012 11 ай бұрын
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 :)
@OEThe11
@OEThe11 2 жыл бұрын
Game changing stuff
@thyagonevessilvestre1248
@thyagonevessilvestre1248 2 жыл бұрын
Looks like a dream...
@DanielLuche
@DanielLuche 8 ай бұрын
Very good
@sudarshansingh1072
@sudarshansingh1072 4 ай бұрын
Thanks to jetpack, life is easier now. (Isn't is inspired by Flutter)
@newbiegameplayy
@newbiegameplayy 3 жыл бұрын
So we dont need recycler again?
@matt-g-recovers
@matt-g-recovers 3 жыл бұрын
I love it!!
@itmeocon25
@itmeocon25 Жыл бұрын
If use Scaffold nested column or lazycolumn, it won't scroll
@zepra2133
@zepra2133 2 жыл бұрын
easier from recycle view 👏
@soma7891
@soma7891 Жыл бұрын
For this singley Jetpack Compose is better than XML
@rahathossainhimel7177
@rahathossainhimel7177 3 жыл бұрын
Thank You.
@sandeepkute4845
@sandeepkute4845 3 жыл бұрын
Bro can you please create an zoom or Google meet app clone
@hossein.no1618
@hossein.no1618 Жыл бұрын
Perfect
@somith16
@somith16 3 жыл бұрын
Sir how many topics to cover
@ПавелЗубко-ц8ч
@ПавелЗубко-ц8ч 2 жыл бұрын
thx
@alfian3570
@alfian3570 3 жыл бұрын
Lazy column is very simple than recylerview.
@bboydarknesz
@bboydarknesz 3 жыл бұрын
Why you keep look your keyboard XD
@Khdkss
@Khdkss Жыл бұрын
where is the so called adaaaapter😂😂
@nightfury1390
@nightfury1390 11 ай бұрын
WTH so simple
@anudeepananth
@anudeepananth 3 жыл бұрын
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
@RodrigoAbreuOliveira Жыл бұрын
show!!!
@karentechnologies3990
@karentechnologies3990 2 жыл бұрын
Great and short video. but why you didn't mention how to implement onItemClickListener()?
@PhilippLackner
@PhilippLackner 2 жыл бұрын
because that's not related to lists, you just attach a clickable modifier for that
@str2254
@str2254 2 жыл бұрын
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" ) } }
ConstraintLayout - Android Jetpack Compose - Part 9
11:58
Philipp Lackner
Рет қаралды 56 М.
Full Guide to Jetpack Compose Effect Handlers
24:56
Philipp Lackner
Рет қаралды 100 М.
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
Drone Valley Audio Adapter for your DJI N3 Goggles
7:06
Drone Valley
Рет қаралды 686
23 - NAVIGATION - Android Jetpack Compose
19:25
Mohsen Mashkour
Рет қаралды 13 М.
Simple Animations - Android Jetpack Compose - Part 11
13:42
Philipp Lackner
Рет қаралды 42 М.
Basic layouts in Compose
1:01:41
Android Developers
Рет қаралды 66 М.
MVVM vs. MVI - Understand the Difference Once and for All
18:40
Philipp Lackner
Рет қаралды 55 М.
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН