[android-developers] setSelection doesn't work when list is updated by a thread
I am trying to scroll a list (ListView) to the top using
setSelection(0), but it doesn't happen if the adapter is updated by a
different thread. I essentially start the update thread and do
setSelection at any point after that statement, but it doesn't seem to
work. I also tried View.post() method to do setSelection, but even
that fails.
Can anyone suggest me a reliable way of doing this?
Thanks,
Lakshmie
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home