Frage

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.

War es hilfreich?

Lösung

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

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top