Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 6c9ce3bfec
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (12 sloc) 0.881 kb

GridFragment for Android

Target API: 7+ (Eclair) with Android Support Library and/ or ActionBarSherlock
Developer: Thomas Barrasso

General/ About

This is a clone of Android's ListFragment class but to support the GridView widget. It was developed for the PlanGrid client for Android powered devices, but is generalized for use with any application.

The behavior of this class is identical to that of ListFragment, simply extend the class and have a widget of type GridView somewhere in your layout with an ID of @android:id/list. Also, a widget with an ID of @android:id/empty can be displayed for when the GridView is empty and loading, then hidden when it has items.

Jump to Line
Something went wrong with that request. Please try again.