AndroidStaggeredGrid icon indicating copy to clipboard operation
AndroidStaggeredGrid copied to clipboard

resetToTop() not invalidate child view

Open rey5137 opened this issue 10 years ago • 1 comments

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;

        ...
    }
}

rey5137 avatar Jun 06 '14 04:06 rey5137

have same issue.thanks for this quick fix.

xifan-xf avatar Jul 22 '15 07:07 xifan-xf