|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectandroid.widget.BaseAdapter
org.android.activityminer.app.activities.ActivityTreeListAdapter
public class ActivityTreeListAdapter
Adapter for the tree list view for the activity hierarchy
Field Summary | |
---|---|
private Context |
context
The activity context |
private DBStatistic |
dbStatistics
The database statistic for classes (activity labels) |
private List<ActivityLabel> |
entries
The entry list |
private List<Integer> |
entryDepth
The depth array for the activity entries in the tree |
private String |
formatActivityRecordingCount
The format string for activity recording counts |
private int |
textAppearance
The text appearance attribute |
private int |
viewLayoutId
Identifier of the view layout |
Fields inherited from interface android.widget.Adapter |
---|
IGNORE_ITEM_VIEW_TYPE, NO_SELECTION |
Constructor Summary | |
---|---|
ActivityTreeListAdapter(Context context,
DBStatistic dbStatistics)
Constructor |
|
ActivityTreeListAdapter(Context context,
DBStatistic dbStatistics,
int viewLayoutId,
int textAppearance)
Constructor |
Method Summary | |
---|---|
Context |
getContext()
Getter for the context |
int |
getCount()
|
Object |
getItem(int position)
|
long |
getItemId(int position)
|
View |
getView(int position,
View convertView,
ViewGroup parent)
|
private void |
prepareEntries(ActivityLabel activityLabel,
int depth)
Does a label entry and depth entry for the given activity label |
Methods inherited from class android.widget.BaseAdapter |
---|
areAllItemsEnabled, getDropDownView, getItemViewType, getViewTypeCount, hasStableIds, isEmpty, isEnabled, notifyDataSetChanged, notifyDataSetInvalidated, registerDataSetObserver, unregisterDataSetObserver |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final Context context
private final DBStatistic dbStatistics
private final List<Integer> entryDepth
private final int viewLayoutId
private final List<ActivityLabel> entries
private final int textAppearance
private final String formatActivityRecordingCount
Constructor Detail |
---|
public ActivityTreeListAdapter(Context context, DBStatistic dbStatistics, int viewLayoutId, int textAppearance)
context
- the activity contextdbStatistics
- the database statistic for classes (activity labels)viewLayoutId
- the view layout identifier sub-elementstextAppearance
- the text appearance attributepublic ActivityTreeListAdapter(Context context, DBStatistic dbStatistics)
context
- the activity contextdbStatistics
- the database statistic for classes (activity labels)Method Detail |
---|
public Context getContext()
private final void prepareEntries(ActivityLabel activityLabel, int depth)
activityLabel
- the activity labeldepth
- the position in the treepublic final int getCount()
public final Object getItem(int position)
public final long getItemId(int position)
public View getView(int position, View convertView, ViewGroup parent)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |