Adding Filters to RecyclerView | Android 2022 | Kotlin
Вставка
- Опубліковано 16 сер 2022
- This episode demonstrates how to add filters to a RecyclerView implementation. We are using Epoxy for the RV implementation and Redux as our architecture! I hope this video helps you :D
Don't forget to subscribe and enable notifications to stay up-to-date!
Full playlist here: • Season 10: E-commerce ...
Source code here: github.com/the-android-factor...
API: fakestoreapi.com/
-- Popular Series --
Rick and Morty app: • Season 6: Rick & Morty...
-- Connect with me --
LinkedIn: / domenic-polidoro-802b72b4
Twitter: / developer_dom
Instagram: / dom_polidoro
Tiktok: / building_android
What Hassan said x2! This video really pointed out how scalable this architecture is! I loved you being surprised that it just worked. That really shows off the setup you've introduced to us. It all is fitting into itself! Thank you so much!
Appreciate the kind words! Yes, Redux is really useful for certain applications or even sections of applications. Having a central store that holds the data in its raw state provides so much flexibility at the implementation level (Fragments)! Really enjoying how it's flowing 🙂
First of all, thank you man and Don't worry about the video length, we will watch your videos no matter the length is.
Love your work
Hey! Thanks for the feedback :) the link to the repo is in the description of the video btw!
Code cleanup is something that is going to come in a future episode as I have a few interesting pieces of info I want to demonstrate 😉 love the support -- please share with anyone you think would benefit from it 🙌
@@TheAndroidFactory I saw the repo and updated my comment thanks man 🤙🏽 looking forward for the next video
Thank you, sir!
Awsome!
truly great content!
Thanks a million. 😍
Thank you for the continued support!!
Amazing content! Keep it up
Thank you thank you!! Hope it was helpful :)
dude, thanks for such a helpful video. How soon will a video with a project using jetpack compose appear?
Popular request! Need to learn it better myself before making content on it BUT I do have a fun series planned after this one. Lots of good content on this playlist 🤝
is there any way to implement this instructure in mvvm? the biggest problem for me is to have access to the same state of filter data in every fragment
You'd need to store the data in a ViewModel that is scoped "higher" than the Fragments themselves - the Activity would work well for this!
Do you a java program for this? New subscriber here hehehe :)
Hey! I actually don't have much Java at all on the channel (maybe no videos tbh). Google recommends Kotlin at this point, and it's industry standard, so maybe learn Kotlin too? They are very similar tbh
is it normal that I'm confused?
also I have some questions, first one is: what if user wants to filter item based on more than one filter? like price and category, in real apps users can filter item base on multiple conditions, and I really need to know how it will be handled :(
second one is: is there a good place to use Type2EpoxyController instead of view state?
I guess you could use the Type2EpoxyController if you really wanted to, but the single class to encapsulate everything is cleaner in my opinion. The multiple filters question is very straightforward as well - instead of only storing one Filter object as the selected filter in the store, you'd need to store a collection (list or set) of Filter objects! A lot of the current code would just drop into place with that!
In regards to being confused, yes it's definitely normal. I still get confused with certain things at times. Software development always has something new or something you don't understand or aren't aware of right around the corner. That's part of the reason I like it because it will feel like you're always learning something new. Anything in particular you're confused about outside of these comments?
@@TheAndroidFactory I hope you be right, but the way you implement the filters(after 3 times reviewing) is really confusing to me, that would be awesome if the Api supports filtering , then maybe it would be easier to implement rather than handling it in UI
They are going to have to do something similar on their end, but basically we just need to find a way to differentiate which items should be a part of the list and which shouldn't. That's always the concept with filtering - I hope it starts to click at some point
that's amazing, but I can't find normal resource about filtering screen with chips on Compose. If you know, can you send me the source code about it?
Take a look at this video I made not that long ago: ua-cam.com/video/DP_vBhU_P6w/v-deo.html&si=NWuBn8eQykZ7e-ya
It isn't filtering, but rather sorting. The concept would be the same though -- instead of ordering objects in an array, you would just be filtering down the array to only what you wanted to display. You can always combine the two and filter AND sort at the same time for a really powerful UX! Hope this helps :)
@@TheAndroidFactory yeah I did it and it is actually replace on my app now😀. But I want to make sorting with chips or something like dropdown menu, but I can't find so much resource about it
Hmmm, well my advice would be to start simple, get the functionality working first and then you can try to "pretty it up" and make the UI the way you want it. Happy to help if I can!
@@TheAndroidFactory yeah, you helps a lot
@@nastenkaoo ❤️❤️ that's why I'm here