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. The library was built for and tested on Android version 2.3.3(SDK 10) and above. It could be modified to support older versions if required. Configurable column count for portrait and landscape orientations. The simplest way to use AndroidStaggeredGrid is to add the library as a gradle aar dependency to your build. As column widths change on orientation change, the grid view expects that all children maintain their own width to height ratio. To assist with this the project includes the DynamicHeightImageView as an example of a view that measures its height based on its width.

Features

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

Project Samples

Project Activity

See All Activity >

License

Apache License V2.0

Follow AndroidStaggeredGrid

AndroidStaggeredGrid Web Site

Other Useful Business Software
Cut Cloud Costs with Google Compute Engine Icon
Cut Cloud Costs with Google Compute Engine

Save up to 91% with Spot VMs and get automatic sustained-use discounts. One free VM per month, plus $300 in credits.

Save on compute costs with Compute Engine. Reduce your batch jobs and workload bill 60-91% with Spot VMs. Compute Engine's committed use offers customers up to 70% savings through sustained use discounts. Plus, you get one free e2-micro VM monthly and $300 credit to start.
Try Compute Engine
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of AndroidStaggeredGrid!

Additional Project Details

Operating Systems

Android

Programming Language

Java

Related Categories

Java Data Visualization Software

Registered

2021-11-05