Question

I am working with heterogeneous grid-view, i want to implement view recycling in it. I have developed the UI but when i tried to recycle the views reference by removing the views from out of the visible screen and use them for data binding. But, then due to removing the views all existing views shift upwards.

PS: Thanks for your attention.

Was it helpful?

Solution

You may want to try this library below. It is taken from experimental Android code and it is good.

https://github.com/maurycyw/StaggeredGridView Demo Link: https://github.com/maurycyw/StaggeredGridViewDemo

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top