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.

Était-ce utile?

La 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

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top