Methods Summary |
---|
public int | getCount()How many items are in the data set represented by this Adapter.
|
public java.lang.Object | getItem(int position)Get the data item associated with the specified position in the data set.
|
public long | getItemId(int position)Get the row id associated with the specified position in the list.
|
public int | getItemViewType(int position)Get the type of View that will be created by {@link #getView} for the specified item.
|
public android.view.View | getView(int position, android.view.View convertView, android.view.ViewGroup parent)Get a View that displays the data at the specified position in the data set. You can either
create a View manually or inflate it from an XML layout file. When the View is inflated, the
parent View (GridView, ListView...) will apply default layout parameters unless you use
{@link android.view.LayoutInflater#inflate(int, android.view.ViewGroup, boolean)}
to specify a root view and to prevent attachment to the root.
|
public int | getViewTypeCount()
Returns the number of types of Views that will be created by
{@link #getView}. Each type represents a set of views that can be
converted in {@link #getView}. If the adapter always returns the same
type of View for all items, this method should return 1.
This method will only be called when when the adapter is set on the
the {@link AdapterView}.
|
public boolean | hasStableIds()Indicates whether the item ids are stable across changes to the
underlying data.
|
public boolean | isEmpty()
|
public void | registerDataSetObserver(android.database.DataSetObserver observer)Register an observer that is called when changes happen to the data used by this adapter.
|
public void | unregisterDataSetObserver(android.database.DataSetObserver observer)Unregister an observer that has previously been registered with this
adapter via {@link #registerDataSetObserver}.
|