What is AndroidStaggeredGrid?

AndroidStaggeredGrid is an Android staggered grid view which supports multiple columns with rows of varying sizes.

The StaggeredGridView was developed due to requirements for the Etsy app not met by any existing Android libraries. Namely a stable implementation with the ability to have a different number of columns in landscape & portrait, to sync grid position across orientation changes and support for headers & footers.

Features:

  • Configurable column count for portrait and landscape orientations.
  • Sync’d row position across orientation changes.
  • Configurable item margin.
  • Support for headers & footers.
  • Internal padding that does not affect the header & footer.
  • Extends AbsListView – “mostly”
  • Supports AbsListView.OnScrollListener

Overview