I have a listview with custom rows being populated from an custom BaseAdaptor
. On click of any row, I open a new Activity
.
Everything was working fine until I added the filter functionality to this list. When I search the list and THEN click on an Item, it doesn't open the activity associated with the filtered results. It opens up an Activity related to the Item at that position in Original list.
Eg. -
Original List : AA, BA, CC, DA, ED, FF
Search : 'A'
Filtered results: AA, BA, DA
But when I click on item DA
it opens up the Activity for CC
. Extremely irritating. I have called notifyDataSetChanged()
on the adapter.
I've been stuck with this problem for sometime. I really dont know how to solve it.
I didnt post the code because it's a whole lot of code and I really dont want to put everything here.
If someone can give me an idea of how to select the Item from the FILTERED list.. It'd b great.
Thanks!
Tell me if something else is needed to understand my question!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…