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
android android-listview textwatcher


source to share


No one has answered this question yet

See similar questions:

0
After adding the search bar, listview doesn't launch the right html file

or similar:

3295
Why is the Android emulator so slow? How can we speed up the development of an Android emulator?
2510
How to persist android activity state by persisting instance state?
1270
How do I pass data between activities in an Android app?
1207
Strange memory issue when loading image into Bitmap object
1188
How do I get the build / version number of your Android app?
1002
Grid motion detection
402
How do I update my Android watchlist?
390
How do I change the line color of the separator line of an Android ListView?
1
Positioning ListView after filtering
1
The checkbox in the list of changes changes after searching for a filter



All Articles
Loading...
X
Show
Funny
Dev
Pics