public class HomeAdapter
extends android.widget.BaseAdapter
Constructor and Description |
---|
HomeAdapter(android.app.Activity activity, java.util.List<HomeSchema> 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 HomeAdapter(android.app.Activity activity, java.util.List<HomeSchema> 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