You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 26, 2025. It is now read-only.
I wanted to add this StaggeredGridView in PullToRefresh library,
but I failed it because onSizeChanged is called first while creating refreshable view (StaggeredGridView) on PullToRefresh.
And then onMeasure is called.
onMeasure can not remake mColumnLefts since onSizeChanged has already made mColumnLefts, mColumnBottoms, mColumnTops, etc even though w and h was 0.
So,
StaggeredGridView.java
@Override
protected void onSizeChanged(int w, int h) {
super.onSizeChanged(w, h);
///////////////// This kind of code is needed.
if(w <= 0 || h <= 0) {
return;
}
Please consider this.
Thank you a lot for your great work~~