Over a million developers have joined DZone.

How to Implement a Staggered Grid View in Android

A staggered grid view includes multiple columns with multiple rows of varying sizes.

· Mobile Zone

Android developers looking for some new layout options - in particular a staggered grid view that includes multiple columns with multiple rows of varying sizes - may be interested in this library developed by the Etsy team. It allows for a flexible column/row view with a header and footer and looks fairly easy to implement, though Gradle users will have an easier time than those working with Eclipse and Ant. This is what the view looks like in the Etsy app for which it was developed:

It's all on Etsy's Github, and they've also included a walkthrough to get it all set up, as well as a list of the library's limitations.

Topics:
library ,mobile ,staggeredgridview

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}