How to Filter List View by Multiple Fields Android Studio Tutorial | Multi Select Filter Buttons

preview_player
Показать описание
Todays tutorial I give an example of how to filter a List View based on multiple filter buttons using Android Studio and Java. We provide a list of filter buttons that the user can tap in order to filter the List, our list view is then filtered based on the selections allowing for multiple to be selected at at a time. We will clear the selections when the user taps on the all filter button.

This tutorial is part 4 in a ListView tutorial series. We continue working on our shape list example. By the end of this tutorial we will be able to filter our ListView by multiple fields, show and hide our sort and filter buttons as well as sort and search our listView.

Tutorial 1 - How to build a List View

Tutorial 2 - Search and Filter List View:

Tutorial 3 - ListView with search, filter, sort & toolbar:

Tutorial 4 (This video) - ListView with search, multi-select filter & sort:

⏱️TIMESTAMPS
00:00 - Intro
00:43 - Remove White Space
01:20 - XML Layout
01:50 - Declare Buttons
02:30 - Colors
02:54 - Sort Buttons
03:59 - FIlter Buttons
06:25 - Refactor
06:50 - Result

#AndroidStudio #AppDevelopment #FilterListView
Рекомендации по теме
Комментарии
Автор

Many thanks for this great explanation, but the onclick inside the list does not work.
Can you fix it or do you have a video or source to explain it?

ahmadbustanji
Автор

Do you have an example where images shown in the list have been fetched from an external source?

satunieminen
Автор

SO complicated! do'nt you have a easier way just for search view to be implemented on an array<multiple strings> ?

javadmoeinihadizadeh
Автор

Hey Cal, is it possible for the category buttons to be generated from a recycler view and still achieve the same result?

delivcemwangi
Автор

Hey cal. I wanted to filter multiple checkboxes stored in realtime database. How do you go about it

arafatbashir
Автор

Thank you bro.. Can i get the project file bro??

shiamahamedluvon
Автор

hey cal, can we do this for recycleview instead of listview ? if yes can you pls give me some code or something ??

braindroid
Автор

hi Cal
how can i do this with recyclerview?
plz help me

Alaa-mcvu
Автор

Wau very nice but i am trying it using firebase

zakirmagide
welcome to shbcf.ru