StaggeredGridView icon indicating copy to clipboard operation
StaggeredGridView copied to clipboard

UI gets disturbed when navigating across the screens.

Open KunalKathrotia opened this issue 11 years ago • 1 comments

Hi everything works great for me except one issue. Gridview layout is not getting inflated in a correct way in my application.

When my layout is loaded the gridview is rendering with let's say 4x4 column in my tablet(10" Sony Xperia Z) in landscape mode, but sometime somewhere at any random row number the items are not rendering sequentially but at any random position with uneven void space. It frequently changes the order of images when navigating across the screens as well.

The same type of situation arise when the tablet is in the portrait mode. but surprisingly when the orientation changes then this issue is getting resolved automatically. I've also attached the image representing my issue. for more information you can go at http://stackoverflow.com/questions/20400626/staggeredgridview-layout-inflation-issue where i posted question regarding this.

Regards. staggere_image

KunalKathrotia avatar Dec 23 '13 06:12 KunalKathrotia

Try to comment "caching if statements" in onMeasure().

See: https://github.com/maurycyw/StaggeredGridView/issues/89

vicianm avatar Sep 10 '14 13:09 vicianm