Hi,

I have a ListView whose position should be changed automatically along
with the data. So, when the adapter's data has changed (adapter is
calling notifyDataSetInvalidated), I'm calling setSelection. This has
no effect. If the call to setSelection is done later (e.g. in a click
handler) it is working.

The second problem is, that the ListView maintains the scroll position
of the list although the data is completely invalidated, that makes no
sense IMO.

It looks like a call to layoutChildren before the call to setSelection
does help in this case, but layoutChildren is protected.

What is the correct way to do this?

Johannes

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to