Package com.example.skeddly.ui.adapter
Class UserAdapter
java.lang.Object
android.widget.BaseAdapter
android.widget.ArrayAdapter<User>
com.example.skeddly.ui.adapter.UserAdapter
- All Implemented Interfaces:
android.widget.Adapter,android.widget.Filterable,android.widget.ListAdapter,android.widget.SpinnerAdapter,android.widget.ThemedSpinnerAdapter
An adapter for showing users.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface android.widget.Adapter
IGNORE_ITEM_VIEW_TYPE, NO_SELECTION -
Constructor Summary
ConstructorsConstructorDescriptionUserAdapter(android.content.Context context, List<User> users, UserAdapter.OnMessageButtonClickListener listener) Constructor for the UserAdapter -
Method Summary
Modifier and TypeMethodDescriptionandroid.view.ViewgetView(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, sortMethods inherited from class android.widget.BaseAdapter
areAllItemsEnabled, getItemViewType, getViewTypeCount, hasStableIds, isEmpty, isEnabled, notifyDataSetInvalidated, registerDataSetObserver, setAutofillOptions, unregisterDataSetObserverMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface android.widget.Adapter
getItemViewType, getViewTypeCount, hasStableIds, isEmpty, registerDataSetObserver, unregisterDataSetObserver
-
Constructor Details
-
UserAdapter
public UserAdapter(android.content.Context context, List<User> users, UserAdapter.OnMessageButtonClickListener listener) Constructor for the UserAdapter- Parameters:
context- The context of the appusers- The users to displaylistener- The callback for when the user clicks the message button.
-
-
Method Details
-
getView
public android.view.View getView(int position, android.view.View convertView, android.view.ViewGroup parent) - Specified by:
getViewin interfaceandroid.widget.Adapter- Overrides:
getViewin classandroid.widget.ArrayAdapter<User>
-