Class SingleChoiceAdapter
-
- All Implemented Interfaces:
-
android.widget.Adapter,android.widget.ListAdapter,android.widget.SpinnerAdapter
public class SingleChoiceAdapter<T> extends BaseAdapter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classSingleChoiceAdapter.ViewHolder
-
Field Summary
Fields Modifier and Type Field Description public final static intIGNORE_ITEM_VIEW_TYPEpublic final static intNO_SELECTION
-
Constructor Summary
Constructors Constructor Description SingleChoiceAdapter(Context context, int checkBoxResourceId)SingleChoiceAdapter(Context context, List<T> objects, int checkBoxResourceId)
-
Method Summary
Modifier and Type Method Description voidrefreshData(List<T> objects)voidsetSelectItem(int selectItem)intgetSelectItem()voidclear()intgetCount()TgetItem(int position)intgetPosition(T item)longgetItemId(int position)ViewgetView(int position, View convertView, ViewGroup parent)-
Methods inherited from class android.widget.BaseAdapter
areAllItemsEnabled, getAutofillOptions, getDropDownView, getItemViewType, getViewTypeCount, hasStableIds, isEmpty, isEnabled, notifyDataSetChanged, notifyDataSetInvalidated, registerDataSetObserver, setAutofillOptions, unregisterDataSetObserver -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
refreshData
void refreshData(List<T> objects)
-
setSelectItem
void setSelectItem(int selectItem)
-
getSelectItem
int getSelectItem()
-
clear
void clear()
-
getCount
int getCount()
-
getPosition
int getPosition(T item)
-
getItemId
long getItemId(int position)
-
getView
View getView(int position, View convertView, ViewGroup parent)
-
-
-
-