Skip to content Skip to sidebar Skip to footer

Listview Displays Each Item Twice After Filtering

I have a list, each row consisting of a main item and subitem. I am using a filter to refresh the list as the user types into a search edittext. On typing the items in the list do

Solution 1:

I solved it by making a custom SimpleAdapter.
My list consists of a Item and Subitem. The SimpleAdapter method performFiltering() was filtering the subitem text also and hence adding each item twice.Making the loop execute only once got the result.


Post a Comment for "Listview Displays Each Item Twice After Filtering"