package

androidx.recyclerview.widget

Interfaces

AsyncListDiffer.ListListener<T>Listener for when the current List is updated.
ItemTouchHelper.ViewDropHandlerAn interface which can be implemented by LayoutManager for better integration with ItemTouchHelper.
ItemTouchUIUtilUtility class for ItemTouchHelper which handles item transformations for different API versions.
ListUpdateCallbackAn interface that can receive Update operations that are applied to a list.
RecyclerView.ChildDrawingOrderCallbackA callback interface that can be used to alter the drawing order of RecyclerView children.
RecyclerView.ItemAnimator.ItemAnimatorFinishedListenerThis interface is used to inform listeners when all pending or running animations in an ItemAnimator are finished.
RecyclerView.LayoutManager.LayoutPrefetchRegistryInterface for LayoutManagers to request items to be prefetched, based on position, with specified distance from viewport, which indicates priority.
RecyclerView.OnChildAttachStateChangeListenerA Listener interface that can be attached to a RecylcerView to get notified whenever a ViewHolder is attached to or detached from RecyclerView.
RecyclerView.OnItemTouchListenerAn OnItemTouchListener allows the application to intercept touch events in progress at the view hierarchy level of the RecyclerView before those touch events are considered for RecyclerView's own scrolling behavior.
RecyclerView.RecyclerListenerA RecyclerListener can be set on a RecyclerView to receive messages whenever a view is recycled.
RecyclerView.SmoothScroller.ScrollVectorProviderAn interface which is optionally implemented by custom RecyclerView.LayoutManager to provide a hint to a RecyclerView.SmoothScroller about the location of the target position.

Classes

AdapterListUpdateCallbackListUpdateCallback that dispatches update events to the given adapter.
AsyncDifferConfig<T>Configuration object for ListAdapter, AsyncListDiffer, and similar background-thread list diffing adapter logic.
AsyncDifferConfig.Builder<T>Builder class for AsyncDifferConfig.
AsyncListDiffer<T>Helper for computing the difference between two lists via DiffUtil on a background thread.
AsyncListUtil<T>A utility class that supports asynchronous content loading.
AsyncListUtil.DataCallback<T>The callback that provides data access for AsyncListUtil.
AsyncListUtil.ViewCallbackThe callback that links AsyncListUtil with the list view.
BatchingListUpdateCallbackWraps a ListUpdateCallback callback and batches operations that can be merged.
ConcatAdapterAn RecyclerView.Adapter implementation that presents the contents of multiple adapters in sequence.
ConcatAdapter.ConfigThe configuration object for a ConcatAdapter.
ConcatAdapter.Config.BuilderThe builder for ConcatAdapter.Config class.
DefaultItemAnimatorThis implementation of RecyclerView.ItemAnimator provides basic animations on remove, add, and move events that happen to the items in a RecyclerView.
DiffUtilDiffUtil is a utility class that calculates the difference between two lists and outputs a list of update operations that converts the first list into the second one.
DiffUtil.CallbackA Callback class used by DiffUtil while calculating the diff between two lists.
DiffUtil.DiffResultThis class holds the information about the result of a DiffUtil.calculateDiff(DiffUtil.Callback, boolean) call.
DiffUtil.ItemCallback<T>Callback for calculating the diff between two non-null items in a list.
DividerItemDecorationDividerItemDecoration is a RecyclerView.ItemDecoration that can be used as a divider between items of a LinearLayoutManager.
GridLayoutManagerA RecyclerView.LayoutManager implementations that lays out items in a grid.
GridLayoutManager.DefaultSpanSizeLookupDefault implementation for GridLayoutManager.SpanSizeLookup.
GridLayoutManager.LayoutParamsLayoutParams used by GridLayoutManager.
GridLayoutManager.SpanSizeLookupA helper class to provide the number of spans each item occupies.
ItemTouchHelperThis is a utility class to add swipe to dismiss and drag & drop support to RecyclerView.
ItemTouchHelper.CallbackThis class is the contract between ItemTouchHelper and your application.
ItemTouchHelper.SimpleCallbackA simple wrapper to the default Callback which you can construct with drag and swipe directions and this class will handle the flag callbacks.
LinearLayoutManagerA RecyclerView.LayoutManager implementation which provides similar functionality to .
LinearLayoutManager.LayoutChunkResult
LinearLayoutManager.SavedState
LinearSmoothScrollerRecyclerView.SmoothScroller implementation which uses a until the target position becomes a child of the RecyclerView and then uses a to slowly approach to target position.
LinearSnapHelperImplementation of the SnapHelper supporting snapping in either vertical or horizontal orientation.
ListAdapter<T, VH>RecyclerView.Adapter base class for presenting List data in a RecyclerView, including computing diffs between Lists on a background thread.
OrientationHelperHelper class for LayoutManagers to abstract measurements depending on the View's orientation.
PagerSnapHelperImplementation of the SnapHelper supporting pager style snapping in either vertical or horizontal orientation.
RecyclerViewA flexible view for providing a limited window into a large data set.
RecyclerView.Adapter<VH>Base class for an Adapter
RecyclerView.AdapterDataObserverObserver base class for watching changes to an RecyclerView.Adapter.
RecyclerView.EdgeEffectFactoryEdgeEffectFactory lets you customize the over-scroll edge effect for RecyclerViews.
RecyclerView.ItemAnimatorThis class defines the animations that take place on items as changes are made to the adapter.
RecyclerView.ItemAnimator.ItemHolderInfoA simple data structure that holds information about an item's bounds.
RecyclerView.ItemDecorationAn ItemDecoration allows the application to add a special drawing and layout offset to specific item views from the adapter's data set.
RecyclerView.LayoutManagerA LayoutManager is responsible for measuring and positioning item views within a RecyclerView as well as determining the policy for when to recycle item views that are no longer visible to the user.
RecyclerView.LayoutManager.PropertiesSome general properties that a LayoutManager may want to use.
RecyclerView.LayoutParams subclass for children of RecyclerView.
RecyclerView.OnFlingListenerThis class defines the behavior of fling if the developer wishes to handle it.
RecyclerView.OnScrollListenerAn OnScrollListener can be added to a RecyclerView to receive messages when a scrolling event has occurred on that RecyclerView.
RecyclerView.RecycledViewPoolRecycledViewPool lets you share Views between multiple RecyclerViews.
RecyclerView.RecyclerA Recycler is responsible for managing scrapped or detached item views for reuse.
RecyclerView.SavedStateThis is public so that the CREATOR can be accessed on cold launch.
RecyclerView.SimpleOnItemTouchListenerAn implementation of RecyclerView.OnItemTouchListener that has empty method bodies and default return values.
RecyclerView.SmoothScrollerBase class for smooth scrolling.
RecyclerView.SmoothScroller.ActionHolds information about a smooth scroll request by a RecyclerView.SmoothScroller.
RecyclerView.State

Contains useful information about the current RecyclerView state like target scroll position or view focus.

RecyclerView.ViewCacheExtensionViewCacheExtension is a helper class to provide an additional layer of view caching that can be controlled by the developer.
RecyclerView.ViewHolderA ViewHolder describes an item view and metadata about its place within the RecyclerView.
RecyclerViewAccessibilityDelegateThe AccessibilityDelegate used by RecyclerView.
RecyclerViewAccessibilityDelegate.ItemDelegateThe default implementation of accessibility delegate for the individual items of the RecyclerView.
SimpleItemAnimatorA wrapper class for ItemAnimator that records View bounds and decides whether it should run move, change, add or remove animations.
SnapHelperClass intended to support snapping for a RecyclerView.
SortedList<T>A Sorted list implementation that can keep items in order and also notify for changes in the list such that it can be bound to a RecyclerView.Adapter.
SortedList.BatchedCallback<T2>A callback implementation that can batch notify events dispatched by the SortedList.
SortedList.Callback<T2>The class that controls the behavior of the SortedList.
SortedListAdapterCallback<T2>A SortedList.Callback implementation that can bind a SortedList to a RecyclerView.Adapter.
StaggeredGridLayoutManagerA LayoutManager that lays out children in a staggered grid formation.
StaggeredGridLayoutManager.LayoutParamsLayoutParams used by StaggeredGridLayoutManager.
StaggeredGridLayoutManager.SavedState

Enums

ConcatAdapter.Config.StableIdModeDefines how ConcatAdapter handle stable ids (RecyclerView.Adapter.hasStableIds()).
RecyclerView.Adapter.StateRestorationPolicyDefines how this Adapter wants to restore its state after a view reconstruction (e.g.

Annotation Types

RecyclerView.EdgeEffectFactory.EdgeDirection
RecyclerView.ItemAnimator.AdapterChangesThe set of flags that might be passed to RecyclerView.ItemAnimator.AdapterChanges.
RecyclerView.Orientation