How could you implement a staggered row layout in Android?

android, listview

Solution

There is a new development going on for `StaggeredGridView`, see this project: https://github.com/maurycyw/StaggeredGridView (via androidviews.net). It's pretty much like the Pinterest app layout.

Problem

How would you implement a layout with multiple columns, where the rows of each column don't line up? I'm thinking of something like: ``` ---------- | | | | | | | | |--| | | | |--| | |--| |--| | |--| | ... ``` And so on. An example of something like this is a website like Pinterest. I'm looking for best practices here from experienced Android devs. Does it make sense to use multiple ListViews and keep them in sync somehow? Is there a better way?

Original source