Custom LazyColumn Sort UI Jetpack Compose

  Рет қаралды 1,442

The Android Factory

The Android Factory

Күн бұрын

Sit back and enjoy this Jetpack Compose tutorial where I build a custom UI component to sort a list of data! The solution is extremely flexible, giving you all the power to make changes and enhancements to it as you want.
Don't forget to subscribe and enable notifications to stay up-to-date!
Source code here: github.com/the...
Full playlist here: • Season 11: Jetpack Com...
Jetpack Compose Basics: developer.andr...
=========== Popular Series ===========
Redux e-commerce app: • Season 10: E-commerce ...
Rick and Morty app: • Season 6: Rick & Morty...
=========== Connect with me ===========
LinkedIn: / domenic-polidoro-802b72b4
Instagram: / dom_polidoro
Twitter: / developer_dom
Tiktok: / building_android

Пікірлер: 20
@supuerawesome707
@supuerawesome707 Ай бұрын
Really loved this series!
@TheAndroidFactory
@TheAndroidFactory Ай бұрын
I never really finished this so I'm sorry for that 😔 but the code is available on GitHub if you want to play with it yourself!
@supuerawesome707
@supuerawesome707 Ай бұрын
@@TheAndroidFactory No need to be sorry, this has been a great series regardless! I may have a stab at implementing the favourite-ing logic myself with Room or DataStore. I'll definitely be checking out some of the other series you've got on the channel!
@TheAndroidFactory
@TheAndroidFactory Ай бұрын
@supuerawesome707 love to hear it! Thank you for the support :)
@rahulchandrabhan
@rahulchandrabhan 8 күн бұрын
very subtle way of doing these kind of stuff
@TheAndroidFactory
@TheAndroidFactory 8 күн бұрын
Compose is just fun 🔥
@farshad462
@farshad462 Жыл бұрын
I'm wondering what would be the appropriate way to take care of the View Model life cycle in compose functions. As you know, in fragments we used to use "viewLifecycleOwner" but in compose I'm facing different approaches including "PerformOnLifecycle" block or collecting a flow with "collectAsStateWithLifecycle" syntax.
@TheAndroidFactory
@TheAndroidFactory Жыл бұрын
Well it depends what you want/need. PerformOnLifecycle is more of a lifecycle callback system like we used to have with onResume, onStart, etc. viewLifecycleOwner is more similar to rememberCoroutineScope() which will give you a coroutine tied to when that composable is on screen for the user to interact with
@vengateshm2122
@vengateshm2122 Жыл бұрын
Can we move sortedQuotes into derivedStateOf sort order? Because sorting of lists happens in every recomposition.
@TheAndroidFactory
@TheAndroidFactory Жыл бұрын
Interesting! Let me look over the docs for derivedStateOf and understand it better, but that sounds like a great optimization! If you want to open a pull request for the change I'm happy to review it and make a video about it 🤝
@TheAndroidFactory
@TheAndroidFactory Жыл бұрын
Cleaned this up in the video coming out shortly! Great shout -- derivedStateOf is pretty cool!
@vengateshm2122
@vengateshm2122 Жыл бұрын
@@TheAndroidFactory Thanks for considering my point.
@ubersticks
@ubersticks Жыл бұрын
Great! FYI there is also quotes.sortedByDescending{...} instead of quotes.sortedBy{...}.reversed()
@TheAndroidFactory
@TheAndroidFactory Жыл бұрын
Ayo! Another great shout-out. Hey, again, if you want to open a PR for it I'll gladly review and make a video out of it!
@ubersticks
@ubersticks Жыл бұрын
@@TheAndroidFactory I submitted this trivial change via my first ever PR
@TheAndroidFactory
@TheAndroidFactory Жыл бұрын
I saw I saw! Gunna make a video about it soon. Thanks for the PR :)
@ubersticks
@ubersticks Жыл бұрын
@@TheAndroidFactory Glad to help
@TheAndroidFactory
@TheAndroidFactory Жыл бұрын
Video drops in an hour and a half 🙌
Reviewing Pull Requests as a NYC Staff Engineer
12:24
The Android Factory
Рет қаралды 666
Should You Use Compose State or StateFlow in Your ViewModels?
13:59
Philipp Lackner
Рет қаралды 77 М.
How Strong is Tin Foil? 💪
00:26
Preston
Рет қаралды 55 МЛН
Apple peeling hack @scottsreality
00:37
_vector_
Рет қаралды 125 МЛН
Fake watermelon by Secret Vlog
00:16
Secret Vlog
Рет қаралды 15 МЛН
The weirdest water bottle you can buy
7:54
Steve Mould
Рет қаралды 525 М.
The ULTIMATE Guide to Sharing Data Between Screens in Jetpack Compose
24:08
Compose UI work: List items vs. Grid items
19:51
The Android Factory
Рет қаралды 562
Lazy layouts in Compose
24:32
Android Developers
Рет қаралды 92 М.
How to Support All Screen Sizes in Jetpack Compose
11:57
Philipp Lackner
Рет қаралды 29 М.
How Strong is Tin Foil? 💪
00:26
Preston
Рет қаралды 55 МЛН