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
I'm loading a lot of data in my StaggeredGridView and reloading it after a configuration change (i.e orientation change) would take a long time. So I have marked to handle the orientation change myself.
When the orientation is changed from portrait to landscape while displaying a 2 column grid, the columns overlap each other. I believe it is because the view is not remeasuring and redrawing the layout.
How can I force measure and draw the StaggeredGridView in my onConfigurationChanged method?
I have tried using requestLayout(), invalidate(), and forceLayout() but none of them seems to solve my issue.
Thanks
The text was updated successfully, but these errors were encountered:
I'm loading a lot of data in my
StaggeredGridView
and reloading it after a configuration change (i.e orientation change) would take a long time. So I have marked to handle the orientation change myself.When the orientation is changed from portrait to landscape while displaying a 2 column grid, the columns overlap each other. I believe it is because the view is not remeasuring and redrawing the layout.
How can I force measure and draw the
StaggeredGridView
in myonConfigurationChanged
method?I have tried using
requestLayout()
,invalidate()
, andforceLayout()
but none of them seems to solve my issue.Thanks
The text was updated successfully, but these errors were encountered: