There is a ListView
. It contains Animals
objects with the following fields: isAnimal
, isBird
, isFish
etc. Values can be 0 or 1 (true / false). It is necessary that the list be filtered in real time depending on the selected checkbox combination.
I used to write a filter through the search string (I added getFilter()
to the adapter), but apparently if I need to filter the ListView
through checkboxes, this option will not work.
Tell me, please, which way to dig?
Filterable
interface in principle? - pavlofff