Open kyungin-park opened 9 years ago
I had a similar issue on the Kindle Fire with the options bar along the right edge of the screen. The layout calculations were getting calculated initially using the whole screen width of 1280px, then again with (screen width - option bar width). I was able to fix this issue by re-calculating the StaggeredGridView's mColumnLefts if the mColumnWidth had changed. See https://github.com/etsy/AndroidStaggeredGrid/pull/179
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
Please consider this. Thank you a lot for your great work~~