- get(int, int) - Method in interface mva2.adapter.internal.Cache
-
- get(int, int) - Method in class mva2.adapter.internal.SparseIntArrayCache
-
- get(int) - Method in class mva2.adapter.ListSection
-
Returns the element at the specified position in this list section.
- getCachedSpanIndex(int, int) - Method in class android.support.v7.widget.SpanSizeLookup
-
- getChangePayload(int, int) - Method in class mva2.adapter.internal.DiffUtilCallback
-
- getChangePayload(M, M) - Method in class mva2.adapter.internal.DiffUtilCallback
-
- getChangePayload(M, M) - Method in interface mva2.adapter.util.PayloadProvider
-
Called by the DataManager when it wants to get the payload of changed elements.
- getChild(int) - Method in class mva2.adapter.TreeSection
-
Returns the child section at the specified position in this list.
- getData() - Method in class mva2.adapter.ListSection
-
Returns the data added to this section
- getDecorationOffset(Rect, View, RecyclerView, RecyclerView.State, int) - Method in class mva2.adapter.MultiViewAdapter
-
- getDragDirections() - Method in class mva2.adapter.ItemViewHolder
-
Returns the drag directions for the provided ItemViewHolder.
- getHeader() - Method in class mva2.adapter.HeaderSection
-
Returns the header object.
- getItem() - Method in class mva2.adapter.internal.RecyclerItem
-
- getItem() - Method in class mva2.adapter.ItemSection
-
Returns the item added to this ItemSection.
- getItem() - Method in class mva2.adapter.ItemViewHolder
-
- getItemBinder() - Method in class mva2.adapter.util.InfiniteLoadingHelper
-
Internal method.
- getItemCount() - Method in class mva2.adapter.MultiViewAdapter
-
- getItemDecoration() - Method in class mva2.adapter.MultiViewAdapter
-
If you would like to use the decoration feature of the adapter, use this method to get
ItemDecoration and add it to your recyclerview.
- getItemMetaData() - Method in class mva2.adapter.internal.RecyclerItem
-
- getItemOffsets(Rect, View, RecyclerView, RecyclerView.State, int) - Method in class mva2.adapter.decorator.Decorator
-
Retrieve item offsets for the given position.
- getItemOffsets(Rect, View, RecyclerView, RecyclerView.State) - Method in class mva2.adapter.internal.DecorationDelegate
-
- getItemTouchHelper() - Method in class mva2.adapter.MultiViewAdapter
-
Get the ItemTouchHelper
which resolves the swipe and drag gestures for the adapter's
individual ItemBinder.
- getItemViewType(int) - Method in class mva2.adapter.MultiViewAdapter
-
- getListSection() - Method in class mva2.adapter.HeaderSection
-
Use this method to get the ListSection which is inside the HeaderSection.
- getMovementFlags(RecyclerView, RecyclerView.ViewHolder) - Method in class mva2.adapter.internal.ItemTouchCallback
-
- getNewListSize() - Method in class mva2.adapter.internal.DiffUtilCallback
-
- getOldListSize() - Method in class mva2.adapter.internal.DiffUtilCallback
-
- getParent() - Method in class mva2.adapter.TreeSection
-
Returns the current item.
- getPositionType(int, RecyclerView) - Method in class mva2.adapter.decorator.Decorator
-
Returns the position type of the item for given adapter position.
- getPositionType(RecyclerView, int) - Method in class mva2.adapter.MultiViewAdapter
-
Returns the positionType of the item inside the layout manager.
- getSectionPositionType(int) - Method in class mva2.adapter.decorator.Decorator
-
- getSectionPositionType(int) - Method in class mva2.adapter.MultiViewAdapter
-
Returns the SectionPositionType for the giver adapter position.
- getSelectedItems() - Method in class mva2.adapter.ListSection
-
Returns the list of selected items
- getSpanGroupIndex(int, int) - Method in class android.support.v7.widget.SpanSizeLookup
-
Returns the index of the group this position belongs.
- getSpanSize(int) - Method in class android.support.v7.widget.SpanSizeLookup
-
- getSpanSize(int) - Method in class mva2.adapter.ItemBinder
-
Used to determine the span size for the
ItemBinder
.
- getSpanSize(int) - Method in class mva2.adapter.MultiViewAdapter
-
- getSpanSizeLookup() - Method in class mva2.adapter.MultiViewAdapter
-
Return the span size lookup used by this adapter.
- getSwipeDirections() - Method in class mva2.adapter.ItemViewHolder
-
Returns the swipe directions for the provided ItemViewHolder.
- InfiniteLoadingHelper - Class in mva2.adapter.util
-
Class to add infinite loading feature into the adapter
- InfiniteLoadingHelper(RecyclerView, int) - Constructor for class mva2.adapter.util.InfiniteLoadingHelper
-
- InfiniteLoadingHelper(RecyclerView, int, int) - Constructor for class mva2.adapter.util.InfiniteLoadingHelper
-
- inflate(ViewGroup, int) - Method in class mva2.adapter.ItemBinder
-
Utility method to inflate the View
- initViewHolder(VH) - Method in class mva2.adapter.ItemBinder
-
- isExpanded() - Method in class mva2.adapter.internal.ItemMetaData
-
- isFirst(int) - Method in class mva2.adapter.decorator.Decorator
-
Returns whether the item is first element in the LinearLayoutManager
.
- isInActionMode() - Method in class mva2.adapter.ItemViewHolder
-
- isItemExpanded() - Method in class mva2.adapter.ItemViewHolder
-
- isItemOnBottomEdge(int) - Method in class mva2.adapter.decorator.Decorator
-
Returns whether the item is on the bottom edge of the RecyclerView
.
- isItemOnLeftEdge(int) - Method in class mva2.adapter.decorator.Decorator
-
Returns whether the item is on the left edge of the RecyclerView
.
- isItemOnRightEdge(int) - Method in class mva2.adapter.decorator.Decorator
-
Returns whether the item is on the right edge of the RecyclerView
.
- isItemOnTopEdge(int) - Method in class mva2.adapter.decorator.Decorator
-
Returns whether the item is on the top edge of the RecyclerView
.
- isItemSelected() - Method in class mva2.adapter.ItemViewHolder
-
- isItemViewSwipeEnabled() - Method in class mva2.adapter.internal.ItemTouchCallback
-
- isLast(int) - Method in class mva2.adapter.decorator.Decorator
-
Returns whether the item is last element in the LinearLayoutManager
.
- isLongPressDragEnabled() - Method in class mva2.adapter.internal.ItemTouchCallback
-
- isSectionExpanded() - Method in class mva2.adapter.ItemViewHolder
-
- isSectionHidden() - Method in class mva2.adapter.Section
-
Returns boolean flag indicating whether the section is hidden or not.
- isSelected() - Method in class mva2.adapter.internal.ItemMetaData
-
- ItemBinder<M,VH extends ItemViewHolder<M>> - Class in mva2.adapter
-
Each item displayed in recylerview needs to be backed by a viewholder.
- ItemBinder() - Constructor for class mva2.adapter.ItemBinder
-
No-arg constructor for ItemBinder.
- ItemBinder(Decorator) - Constructor for class mva2.adapter.ItemBinder
-
Initializes the ItemBinder class and adds the decorator to this ItemBinder.
- ItemMetaData - Class in mva2.adapter.internal
-
- ItemMetaData() - Constructor for class mva2.adapter.internal.ItemMetaData
-
- ItemSection<M> - Class in mva2.adapter
-
Section which displays a single item inside the RecyclerView.
- ItemSection() - Constructor for class mva2.adapter.ItemSection
-
No-arg constructor for ItemSection.
- ItemSection(M) - Constructor for class mva2.adapter.ItemSection
-
Initializes the ItemSection with the item passed.
- ItemTouchCallback - Class in mva2.adapter.internal
-
- ItemTouchCallback(MultiViewAdapter) - Constructor for class mva2.adapter.internal.ItemTouchCallback
-
- ItemViewHolder<M> - Class in mva2.adapter
-
ItemViewHolder is a wrapper class around RecyclerView.ViewHolder
.
- ItemViewHolder(View) - Constructor for class mva2.adapter.ItemViewHolder
-
- Section - Class in mva2.adapter
-
Sections are the building blocks of the MultiViewAdapter.
- Section() - Constructor for class mva2.adapter.Section
-
- SectionPositionType - Enum in mva2.adapter.decorator
-
SectionPositionType refers to position of section inside the adapter
SectionPositionType is an enum value, which has only possible three values.
- set(List<M>) - Method in class mva2.adapter.ListSection
-
Replaces the data list in this data manager with the new list.
- set(int, M) - Method in class mva2.adapter.ListSection
-
Replaces the element at the specified position in this data manager with the
specified element (optional operation).
- setAdapter(MultiViewAdapter) - Method in class android.support.v7.widget.SpanSizeLookup
-
Attach the adapter to the SpanSizeLookup
- setDiffUtil(MvaDiffUtil<M>) - Method in class mva2.adapter.ListSection
-
Sets the diffutil for this section.
- setExpanded(boolean) - Method in class mva2.adapter.internal.ItemMetaData
-
- setExpansionMode(Mode) - Method in class mva2.adapter.MultiViewAdapter
-
Set the expansion mode for this adapter.
- setExpansionMode(Mode) - Method in class mva2.adapter.Section
-
Set the expansion mode for this section.
- setFooterSection(ItemSection<String>) - Method in class mva2.adapter.util.InfiniteLoadingHelper
-
- setHeader(H) - Method in class mva2.adapter.HeaderSection
-
Sets the header object.
- setInfiniteLoadingHelper(InfiniteLoadingHelper) - Method in class mva2.adapter.MultiViewAdapter
-
By setting an infiniteLoadingHelper, you can add infinite scrolling feature to the adapter.
- setItem(M) - Method in class mva2.adapter.ItemSection
-
Sets the item for this section.
- setOnItemClickListener(OnItemClickListener<M>) - Method in class mva2.adapter.ListSection
-
Set the listener to get callback when an item is clicked inside the section.
- setOnSelectionChangedListener(OnSelectionChangedListener<M>) - Method in class mva2.adapter.ListSection
-
Set listener to get callback when an item is selected or unselected
- setPageCount(int) - Method in class mva2.adapter.util.InfiniteLoadingHelper
-
Set the page count for infinite loading progress.
- setPayloadProvider(PayloadProvider<M>) - Method in class mva2.adapter.ListSection
-
Set your own payload provider.
- setSectionExpansionMode(Mode) - Method in class mva2.adapter.MultiViewAdapter
-
Set the section expansion mode for this adapter.
- setSectionExpansionMode(Mode) - Method in class mva2.adapter.Section
-
Set the section expansion mode for this section.
- setSelected(boolean) - Method in class mva2.adapter.internal.ItemMetaData
-
- setSelectionMode(Mode) - Method in class mva2.adapter.MultiViewAdapter
-
Set the selection mode for this adapter.
- setSelectionMode(Mode) - Method in class mva2.adapter.Section
-
Set the selection mode for this section.
- setSpanCount(int) - Method in class mva2.adapter.MultiViewAdapter
-
Set the span count for the adapter.
- setSpanCount(int) - Method in class mva2.adapter.Section
-
Set the span count for this section.
- setSwipeToDismissListener(SwipeToDismissListener<M>) - Method in class mva2.adapter.ListSection
-
Sets the SwipeToDismissListener
- setTreeDecorator(Decorator) - Method in class mva2.adapter.TreeSection
-
Sets a decorator for TreeSection and its child items.
- showSection() - Method in class mva2.adapter.Section
-
If the section was hidden from parent, this method shows it again in the parent.
- size() - Method in class mva2.adapter.ListSection
-
Removes all of the elements from this data manager (optional operation).
- SpanSizeLookup - Class in android.support.v7.widget
-
Wrapper class around GridLayoutManager.SpanSizeLookup
.
- SpanSizeLookup(Cache) - Constructor for class android.support.v7.widget.SpanSizeLookup
-
Constructor to initialize the SpanSizeLookup class.
- SparseIntArrayCache - Class in mva2.adapter.internal
-
- SparseIntArrayCache() - Constructor for class mva2.adapter.internal.SparseIntArrayCache
-
- startActionMode() - Method in class mva2.adapter.MultiViewAdapter
-
Helper method to set the adapter is in contextual action mode.
- startDrag() - Method in class mva2.adapter.ItemViewHolder
-
The method lets the user to start dragging the viewholder
- stopActionMode() - Method in class mva2.adapter.MultiViewAdapter
-
Helper method to set the adapter has exited contextual action mode.
- SwipeToDismissListener<M> - Interface in mva2.adapter.util
-
Listener to listen when an item is dismissed by swipe gesture.