org.android.activityminer.app.recording
Class LabelAdapter
java.lang.Object
android.widget.BaseAdapter
android.widget.ArrayAdapter<String>
org.android.activityminer.app.recording.LabelAdapter
- All Implemented Interfaces:
- Adapter, Filterable, ListAdapter, SpinnerAdapter
public class LabelAdapter
- extends ArrayAdapter<String>
The activity label list adapter.
Field Summary |
private int |
selectedPos
The position of the current selected entry. |
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 |
selectedPos
private int selectedPos
- The position of the current selected entry.
LabelAdapter
public LabelAdapter(Context context,
int resource,
int textViewResourceId,
List<String> labels)
- Constructor
- Parameters:
context
- the contextresource
- the layout resource idtextViewResourceId
- the text view resource id in the layoutlabels
- the labels
getSelectedLabelPos
public final int getSelectedLabelPos()
- Getter for the selected activityLabel position
- Returns:
- the selected activityLabel position
setSelectedPos
public final void setSelectedPos(int selectedPos)
- Setter for the selected entry position
- Parameters:
selectedPos
- the selected entry position to set
getView
public final View getView(int position,
View convertView,
ViewGroup parent)
- Specified by:
getView
in interface Adapter
- Overrides:
getView
in class ArrayAdapter<String>