I am going to make a grid of images and I am trying to figure out whether to use an array adaptor or a baseadaptor. While the GridView example, stores the data in an array,
You typically choose your adapter class based on what the model data is. If you have an ArrayList
of objects, use ArrayAdapter
. If you have a Cursor
from a database query, use a CursorAdapter
. BaseAdapter
can be used for anything, but it requires more coding, since it has no innate knowledge of how to iterate over the data.