How to get correct position after filtering Listview in android app

In my application, when the user types something in the search box, the list is filtered but the position of the list items changes. Because of this changed position, when the user clicks on a list item, it results in unwanted activity. Because I have set events to list items according to their position. Is there any parameter of list items / strings that stays the same even after getting the list?

+3


source to share





All Articles