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

КОМЕНТАРІ • 27

  • @dadveloper2326
    @dadveloper2326 Рік тому +2

    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!

    • @TheAndroidFactory
      @TheAndroidFactory  Рік тому +1

      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 🙂

  • @hsnozanal
    @hsnozanal Рік тому +6

    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

    • @TheAndroidFactory
      @TheAndroidFactory  Рік тому

      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 🙌

    • @hsnozanal
      @hsnozanal Рік тому +1

      @@TheAndroidFactory I saw the repo and updated my comment thanks man 🤙🏽 looking forward for the next video

    • @TheAndroidFactory
      @TheAndroidFactory  Рік тому

      Thank you, sir!

  • @jafaraml
    @jafaraml Рік тому +1

    Awsome!
    truly great content!
    Thanks a million. 😍

  • @sarabjeetsinghhora7751
    @sarabjeetsinghhora7751 Рік тому +1

    Amazing content! Keep it up

  • @firefox5597
    @firefox5597 Рік тому +1

    dude, thanks for such a helpful video. How soon will a video with a project using jetpack compose appear?

    • @TheAndroidFactory
      @TheAndroidFactory  Рік тому +1

      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 🤝

  • @farshad462
    @farshad462 Рік тому +1

    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

    • @TheAndroidFactory
      @TheAndroidFactory  Рік тому

      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!

  • @rovicgabrieltabucol908
    @rovicgabrieltabucol908 Рік тому +1

    Do you a java program for this? New subscriber here hehehe :)

    • @TheAndroidFactory
      @TheAndroidFactory  Рік тому

      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

  • @farshad462
    @farshad462 Рік тому +1

    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?

    • @TheAndroidFactory
      @TheAndroidFactory  Рік тому

      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!

    • @TheAndroidFactory
      @TheAndroidFactory  Рік тому

      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?

    • @farshad462
      @farshad462 Рік тому +1

      @@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

    • @TheAndroidFactory
      @TheAndroidFactory  Рік тому +1

      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

  • @nastenkaoo
    @nastenkaoo 11 місяців тому +1

    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?

    • @TheAndroidFactory
      @TheAndroidFactory  11 місяців тому

      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 :)

    • @nastenkaoo
      @nastenkaoo 11 місяців тому +1

      @@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

    • @TheAndroidFactory
      @TheAndroidFactory  11 місяців тому

      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!

    • @nastenkaoo
      @nastenkaoo 11 місяців тому

      @@TheAndroidFactory yeah, you helps a lot

    • @TheAndroidFactory
      @TheAndroidFactory  11 місяців тому

      @@nastenkaoo ❤️❤️ that's why I'm here