Saturday 11 January 2020

android:staggergridlayout while moving up shuffles

I am using staggered grid layout. the following is the code:

StaggeredGridLayoutManager glm= new StaggeredGridLayoutManager(2, StaggeredGridLayoutManager.VERTICAL);
glm.setGapStrategy(StaggeredGridLayoutManager.GAP_HANDLING_NONE);

I am using GAP_HANDLING_NONE to avoid images swapping from one column to other.

When I start the app, the beginning of the screen is:

enter image description here

After scrolling down to bottom and when I return to the top. randomly the following three images show the layout (it keeps varying)

enter image description here

enter image description here

enter image description here



from android:staggergridlayout while moving up shuffles

No comments:

Post a Comment