Class SingleChoiceAdapter

  • All Implemented Interfaces:
    android.widget.Adapter , android.widget.ListAdapter , android.widget.SpinnerAdapter

    
    public class SingleChoiceAdapter<T>
    extends BaseAdapter
                        
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      void refreshData(List<T> objects)
      void setSelectItem(int selectItem)
      int getSelectItem()
      void clear()
      int getCount()
      T getItem(int position)
      int getPosition(T item)
      long getItemId(int position)
      View getView(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
    • Constructor Detail

      • SingleChoiceAdapter

        SingleChoiceAdapter(Context context, int checkBoxResourceId)
      • SingleChoiceAdapter

        SingleChoiceAdapter(Context context, List<T> objects, int checkBoxResourceId)