O'Reilly logo

Android Application Development: A Beginner’s Tutorial by Budi Kurniawan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 9

GridView

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.

Overview

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” ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required