public abstract class MediaItemsAbstractAdapter extends SectionedRecyclerViewAdapter<MediaItem>
Modifier and Type | Class and Description |
---|---|
static interface |
MediaItemsAbstractAdapter.DragHandlerListener
Interface for the "drag handler" icon for each list item
|
static class |
MediaItemsAbstractAdapter.ElementAbstractViewHolder
Abstract ViewHolder for the private adapter that describes an item
|
static interface |
MediaItemsAbstractAdapter.RowListener
Callback used by the adapter to inform of clicks or options select on the media items in the list
|
SectionedRecyclerViewAdapter.SectionedAdapterTouchHelperCallback, SectionedRecyclerViewAdapter.SectionViewHolder
VIEW_TYPE_ITEM, VIEW_TYPE_SECTION
Constructor and Description |
---|
MediaItemsAbstractAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
setDragHandlerListener(MediaItemsAbstractAdapter.DragHandlerListener dragHandlerListener)
Allows to add a "drag handler" listener (each media item in the list has a handler that, when pressed, should start a drag&drop operation)
|
void |
setOnItemOptionSelectListener(MediaItemsAbstractAdapter.RowListener rowListener)
Allows to add an options listener (each media item in the list has a menu button to display some options)
|
void |
setSearchMode(boolean searchMode)
Setter.
|
addItemsAtTheEndAndNotify, enableMovement, enableSectioning, get, getItemCount, moveItemAndNotify, notifyItemChanged, notifyItemRangeChanged, notifyItemRangeInserted, removeItemAndNotify, setAdapterToRecyclerView, setEmptyView, setItemsAndNotifyDataSetChanged
public void setOnItemOptionSelectListener(MediaItemsAbstractAdapter.RowListener rowListener)
rowListener
- the listener to add to the adapterpublic void setDragHandlerListener(MediaItemsAbstractAdapter.DragHandlerListener dragHandlerListener)
dragHandlerListener
- the listener to add to the adapterpublic void setSearchMode(boolean searchMode)
searchMode
- true if search mode is active, false otherwise