public class DrawerAdapter
extends android.widget.BaseAdapter
Constructor and Description |
---|
DrawerAdapter(android.app.Activity activity,
java.util.List<java.util.HashMap<java.lang.String,java.lang.String>> data) |
Modifier and Type | Method and Description |
---|---|
int |
getCount()
Get count of the data
|
java.lang.Object |
getItem(int position)
Get the data item associated with the specified position
|
long |
getItemId(int position)
Get the row ID associated with the specified position
|
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
|
areAllItemsEnabled, getAutofillOptions, getDropDownView, getItemViewType, getViewTypeCount, hasStableIds, isEmpty, isEnabled, notifyDataSetChanged, notifyDataSetInvalidated, registerDataSetObserver, setAutofillOptions, unregisterDataSetObserver
public DrawerAdapter(android.app.Activity activity, java.util.List<java.util.HashMap<java.lang.String,java.lang.String>> data)
public int getCount()
public java.lang.Object getItem(int position)
position
- of the item whose data we wantpublic long getItemId(int position)
position
- of the item whose row ID we wantpublic android.view.View getView(int position, android.view.View convertView, android.view.ViewGroup parent)
position
- of the item within the adapter's data set of the item whose View we wantconvertView
- the old View to reuse, if possibleparent
- the parent that this View will eventually be attached to