OK, I've made it. But still can't understand why it works in this way:
mMessageList.addAll(result);
mMessageArrayAdapter.notifyDataSetChanged();
mMessageListView.clearFocus();
mMessageListView.post(new Runnable() {
@Override
public void run() {
mMessageListView.setSelection(searchedMessagePosition);
}
});
Note, that calling clearFocus() before post() is vital.
--
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