I would like to update my list in android with new entries added or removed but when i use setListAdapter my list jumps back to the first entry… How would i update my list so it’s position sticks on the same place in the list?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This question is very much alike the one that was resolved here: Android – list returns to top after update
By setting the adapter again instead of working with the adapter itself you reset the position of the list.
Try working with the adapter itself instead of the datasourse directly.