I have a spinner that holds objects and uses my own custom ArrayAdapter in order to display the given object data properly. I also have toggle buttons. What I would like to do is when specific toggle buttons are on I want spinner data to be filtered. So for example my object has a function isFavorite. So if is favorite toggle button is on, I would like ArrayAdapter to show only favorite values in spinner.
Can anyone point me in the right direction on how I can do this?
0 comments:
Post a Comment