Better way for "refresh" and "setSelection" after Update ListView (android)
- by Dennie
In my ListView, I choose an Item to "Add Favorite" and I have to do some stuff work, I fill data again to refresh the List, then I implement OnScrollListener use setSelection(firstVisibleItem) to set List display right on Item was added.
Are there any better way to do that. I mean like mCursor.requery() or something like that in android APIs ? Or any suggest way?