org.android.activityminer.app.db
Class DBSampleStatisticAdapter
java.lang.Object
android.widget.BaseAdapter
android.widget.ArrayAdapter<DBSampleStatistic>
org.android.activityminer.app.db.DBSampleStatisticAdapter
- All Implemented Interfaces:
- Adapter, Filterable, ListAdapter, SpinnerAdapter
public class DBSampleStatisticAdapter
- extends ArrayAdapter<DBSampleStatistic>
The array adapter for the sample statistics view.
Methods inherited from class android.widget.ArrayAdapter |
add, addAll, addAll, clear, createFromResource, getContext, getCount, getDropDownView, getFilter, getItem, getItemId, getPosition, insert, notifyDataSetChanged, remove, setDropDownViewResource, setNotifyOnChange, sort |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
listStatistics
private final List<DBSampleStatistic> listStatistics
- The list with the statistics entries.
context
private final Activity context
- The activity context
mapActivityLabels
private final ActivityLabelMap mapActivityLabels
- The activity identifier map
DBSampleStatisticAdapter
public DBSampleStatisticAdapter(Activity context,
List<DBSampleStatistic> listStatistics,
ActivityLabelMap mapActivityLabels)
- Constructor
- Parameters:
context
- the contextlistStatistics
- the statistics listmapActivityLabels
- the identifier map
getView
public View getView(int position,
View convertView,
ViewGroup parent)
- Specified by:
getView
in interface Adapter
- Overrides:
getView
in class ArrayAdapter<DBSampleStatistic>