AndroidStaggeredGrid
AndroidStaggeredGrid copied to clipboard
resetToTop() not invalidate child view
If you scroll grid view so the first visible position large than 0, and call resetToTop(), although grid view go back to top, child views still not invalidate and show the old data.
A quick fix to add mDataChanged = true; in setSelection(int) of ExtendableListView class:
@Override
public void setSelection(final int position) {
if (position >= 0) {
mLayoutMode = LAYOUT_SYNC;
mSpecificTop = getListPaddingTop();
mDataChanged = true;
...
}
}
have same issue.thanks for this quick fix.