Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

How to Implement a Staggered Grid View in Android

DZone's Guide to

How to Implement a Staggered Grid View in Android

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

· Mobile Zone
Free Resource

Download this comprehensive Mobile Testing Reference Guide to help prioritize which mobile devices and OSs to test against, brought to you in partnership with Sauce Labs.

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.

Analysts agree that a mix of emulators/simulators and real devices are necessary to optimize your mobile app testing - learn more in this white paper, brought to you in partnership with Sauce Labs.

Topics:
library ,mobile ,staggeredgridview

Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}