A GridView is a view that can display a list of scrollable items in a grid. It is like a ListVIew except that it display items in multiple columns, unlike a ListView where items are displayed in a single column. Like a ListView, a GridView too takes its data source and layout from a ListAdapter.
This chapter shows how you can use the GridView widget and presents a sample application. You should have read Chapter 8, “ListView” before reading this chapter.
The android.widget.GridView class is the template for creating a GridView. Both the GridView and ListView classes are direct descendants of android.view.AbsListView. Like a ListView, a GridView gets its data source from a ListAdapter. Please refer to Chapter 8, “ListView” ...