Class ExerciseAdapter

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

    @RequiresApi(api=26)
    public class ExerciseAdapter
    extends android.widget.ArrayAdapter<Exercise>
    • Field Summary

      • Fields inherited from interface android.widget.Adapter

        IGNORE_ITEM_VIEW_TYPE, NO_SELECTION
    • Constructor Summary

      Constructors 
      Constructor Description
      ExerciseAdapter​(android.content.Context context, int resource, java.util.ArrayList<Exercise> list)
      Basic constructor which takes same parameters as normal Adapter.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      android.view.View getView​(int position, android.view.View convertView, android.view.ViewGroup parent)  
      • Methods inherited from class android.widget.ArrayAdapter

        add, addAll, addAll, clear, createFromResource, getAutofillOptions, getContext, getCount, getDropDownView, getDropDownViewTheme, getFilter, getItem, getItemId, getPosition, insert, notifyDataSetChanged, remove, setDropDownViewResource, setDropDownViewTheme, setNotifyOnChange, sort
      • Methods inherited from class android.widget.BaseAdapter

        areAllItemsEnabled, getItemViewType, getViewTypeCount, hasStableIds, isEmpty, isEnabled, notifyDataSetInvalidated, registerDataSetObserver, setAutofillOptions, unregisterDataSetObserver
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface android.widget.Adapter

        getItemViewType, getViewTypeCount, hasStableIds, isEmpty, registerDataSetObserver, unregisterDataSetObserver
    • Constructor Detail

      • ExerciseAdapter

        public ExerciseAdapter​(android.content.Context context,
                               int resource,
                               java.util.ArrayList<Exercise> list)
        Basic constructor which takes same parameters as normal Adapter.
        Parameters:
        context -
        resource - ID of layout file to use.
        list -
    • Method Detail

      • getView

        public android.view.View getView​(int position,
                                         android.view.View convertView,
                                         android.view.ViewGroup parent)
        Specified by:
        getView in interface android.widget.Adapter
        Overrides:
        getView in class android.widget.ArrayAdapter<Exercise>