Тёмный

Custom LazyColumn Sort UI Jetpack Compose 

The Android Factory
Подписаться 7 тыс.
Просмотров 1,5 тыс.
50% 1

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

Опубликовано:

 

2 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 20   
@supuerawesome707
@supuerawesome707 2 месяца назад
Really loved this series!
@TheAndroidFactory
@TheAndroidFactory 2 месяца назад
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 2 месяца назад
@@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 2 месяца назад
@supuerawesome707 love to hear it! Thank you for the support :)
@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
@rahulchandrabhan
@rahulchandrabhan 28 дней назад
very subtle way of doing these kind of stuff
@TheAndroidFactory
@TheAndroidFactory 27 дней назад
Compose is just fun 🔥
@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 🙌
Далее
How to handle network errors with Ktor
10:37
Просмотров 1,6 тыс.
HA-HA-HA-HA 👫 #countryhumans
00:15
Просмотров 1,3 млн
ЭТО НАСТОЯЩАЯ МАГИЯ😬😬😬
00:19
Лучше одной, чем с такими
00:54
Просмотров 851 тыс.
I Remade YouTube From Scratch Using Just Bash
17:51
Просмотров 12 тыс.
Practical API mapping Android example
11:14
Просмотров 1,9 тыс.
I found the perfect no-code automations platform
20:06
Sticky headers in Jetpack Compose!
15:21
Просмотров 2,5 тыс.