public class SingleChoiceAdapter<T>
extends android.widget.BaseAdapter
Modifier and Type | Class and Description |
---|---|
static class |
SingleChoiceAdapter.ViewHolder |
Constructor and Description |
---|
SingleChoiceAdapter(android.content.Context context,
int checkBoxResourceId) |
SingleChoiceAdapter(android.content.Context context,
java.util.List<T> objects,
int checkBoxResourceId) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
int |
getCount() |
T |
getItem(int position) |
long |
getItemId(int position) |
int |
getPosition(T item) |
int |
getSelectItem() |
android.view.View |
getView(int position,
android.view.View convertView,
android.view.ViewGroup parent) |
void |
refreshData(java.util.List<T> objects) |
void |
setSelectItem(int selectItem) |
areAllItemsEnabled, getAutofillOptions, getDropDownView, getItemViewType, getViewTypeCount, hasStableIds, isEmpty, isEnabled, notifyDataSetChanged, notifyDataSetInvalidated, registerDataSetObserver, setAutofillOptions, unregisterDataSetObserver
public SingleChoiceAdapter(android.content.Context context, int checkBoxResourceId)
public SingleChoiceAdapter(android.content.Context context, java.util.List<T> objects, int checkBoxResourceId)
public void refreshData(java.util.List<T> objects)
public void setSelectItem(int selectItem)
public int getSelectItem()
public void clear()
public int getCount()
public T getItem(int position)
public int getPosition(T item)
public long getItemId(int position)
public android.view.View getView(int position, android.view.View convertView, android.view.ViewGroup parent)