androidx.recyclerview.widget


Annotations

Interfaces

AsyncListDiffer.ListListener

Listener for when the current List is updated.

ItemTouchHelper.ViewDropHandler

An interface which can be implemented by LayoutManager for better integration with ItemTouchHelper.

ItemTouchUIUtil

Utility class for ItemTouchHelper which handles item transformations for different API versions.

ListUpdateCallback

An interface that can receive Update operations that are applied to a list.

RecyclerView.ChildDrawingOrderCallback

A callback interface that can be used to alter the drawing order of RecyclerView children.

RecyclerView.ItemAnimator.ItemAnimatorFinishedListener

This interface is used to inform listeners when all pending or running animations in an ItemAnimator are finished.

RecyclerView.LayoutManager.LayoutPrefetchRegistry

Interface for LayoutManagers to request items to be prefetched, based on position, with specified distance from viewport, which indicates priority.

RecyclerView.OnChildAttachStateChangeListener

A Listener interface that can be attached to a RecylcerView to get notified whenever a ViewHolder is attached to or detached from RecyclerView.

RecyclerView.OnItemTouchListener

An 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.RecyclerListener

A RecyclerListener can be set on a RecyclerView to receive messages whenever a view is recycled.

RecyclerView.SmoothScroller.ScrollVectorProvider

An interface which is optionally implemented by custom RecyclerView.LayoutManager to provide a hint to a SmoothScroller about the location of the target position.

Classes

AdapterListUpdateCallback

ListUpdateCallback that dispatches update events to the given adapter.

AsyncDifferConfig

Configuration object for ListAdapter, AsyncListDiffer, and similar background-thread list diffing adapter logic.

AsyncDifferConfig.Builder

Builder class for AsyncDifferConfig.

AsyncListDiffer

Helper for computing the difference between two lists via DiffUtil on a background thread.

AsyncListUtil

A utility class that supports asynchronous content loading.

AsyncListUtil.DataCallback

The callback that provides data access for AsyncListUtil.

AsyncListUtil.ViewCallback

The callback that links AsyncListUtil with the list view.

BatchingListUpdateCallback

Wraps a ListUpdateCallback callback and batches operations that can be merged.

ConcatAdapter

An Adapter implementation that presents the contents of multiple adapters in sequence.

ConcatAdapter.Config

The configuration object for a ConcatAdapter.

ConcatAdapter.Config.Builder

The builder for Config class.

DefaultItemAnimator

This implementation of RecyclerView.ItemAnimator provides basic animations on remove, add, and move events that happen to the items in a RecyclerView.

DiffUtil

DiffUtil 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.Callback

A Callback class used by DiffUtil while calculating the diff between two lists.

DiffUtil.DiffResult

This class holds the information about the result of a calculateDiff call.

DiffUtil.ItemCallback

Callback for calculating the diff between two non-null items in a list.

DividerItemDecoration

DividerItemDecoration is a RecyclerView.ItemDecoration that can be used as a divider between items of a LinearLayoutManager.

GridLayoutManager

A RecyclerView.LayoutManager implementations that lays out items in a grid.

GridLayoutManager.DefaultSpanSizeLookup

Default implementation for SpanSizeLookup.

GridLayoutManager.LayoutParams

LayoutParams used by GridLayoutManager.

GridLayoutManager.SpanSizeLookup

A helper class to provide the number of spans each item occupies.

ItemTouchHelper

This is a utility class to add swipe to dismiss and drag &drop support to RecyclerView.

ItemTouchHelper.Callback

This class is the contract between ItemTouchHelper and your application.

ItemTouchHelper.SimpleCallback

A simple wrapper to the default Callback which you can construct with drag and swipe directions and this class will handle the flag callbacks.

LinearLayoutManager

A RecyclerView.LayoutManager implementation which provides similar functionality to android.widget.ListView.

LinearLayoutManager.LayoutChunkResult
LinearSmoothScroller

RecyclerView.SmoothScroller implementation which uses a LinearInterpolator until the target position becomes a child of the RecyclerView and then uses a DecelerateInterpolator to slowly approach to target position.

LinearSnapHelper

Implementation of the SnapHelper supporting snapping in either vertical or horizontal orientation.

ListAdapter

RecyclerView.Adapter base class for presenting List data in a RecyclerView, including computing diffs between Lists on a background thread.

OrientationHelper

Helper class for LayoutManagers to abstract measurements depending on the View's orientation.

PagerSnapHelper

Implementation of the SnapHelper supporting pager style snapping in either vertical or horizontal orientation.

RecyclerView

A flexible view for providing a limited window into a large data set.

RecyclerView.Adapter

Base class for an Adapter

RecyclerView.AdapterDataObserver

Observer base class for watching changes to an Adapter.

RecyclerView.EdgeEffectFactory

EdgeEffectFactory lets you customize the over-scroll edge effect for RecyclerViews.

RecyclerView.ItemAnimator

This class defines the animations that take place on items as changes are made to the adapter.

RecyclerView.ItemAnimator.ItemHolderInfo

A simple data structure that holds information about an item's bounds.

RecyclerView.ItemDecoration

An ItemDecoration allows the application to add a special drawing and layout offset to specific item views from the adapter's data set.

RecyclerView.LayoutManager

A 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.Properties

Some general properties that a LayoutManager may want to use.

RecyclerView.LayoutParams

LayoutParams subclass for children of RecyclerView.

RecyclerView.OnFlingListener

This class defines the behavior of fling if the developer wishes to handle it.

RecyclerView.OnScrollListener

An OnScrollListener can be added to a RecyclerView to receive messages when a scrolling event has occurred on that RecyclerView.

RecyclerView.RecycledViewPool

RecycledViewPool lets you share Views between multiple RecyclerViews.

RecyclerView.Recycler

A Recycler is responsible for managing scrapped or detached item views for reuse.

RecyclerView.SimpleOnItemTouchListener

An implementation of RecyclerView.OnItemTouchListener that has empty method bodies and default return values.

RecyclerView.SmoothScroller

Base class for smooth scrolling.

RecyclerView.SmoothScroller.Action

Holds information about a smooth scroll request by a SmoothScroller.

RecyclerView.State

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

RecyclerView.ViewCacheExtension

ViewCacheExtension is a helper class to provide an additional layer of view caching that can be controlled by the developer.

RecyclerView.ViewHolder

A ViewHolder describes an item view and metadata about its place within the RecyclerView.

RecyclerViewAccessibilityDelegate

The AccessibilityDelegate used by RecyclerView.

RecyclerViewAccessibilityDelegate.ItemDelegate

The default implementation of accessibility delegate for the individual items of the RecyclerView.

SimpleItemAnimator

A wrapper class for ItemAnimator that records View bounds and decides whether it should run move, change, add or remove animations.

SnapHelper

Class intended to support snapping for a RecyclerView.

SortedList

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

A callback implementation that can batch notify events dispatched by the SortedList.

SortedList.Callback

The class that controls the behavior of the SortedList.

SortedListAdapterCallback

A SortedList.Callback implementation that can bind a SortedList to a RecyclerView.Adapter.

StaggeredGridLayoutManager

A LayoutManager that lays out children in a staggered grid formation.

StaggeredGridLayoutManager.LayoutParams

LayoutParams used by StaggeredGridLayoutManager.

Enums

ConcatAdapter.Config.StableIdMode

Defines how ConcatAdapter handle stable ids (hasStableIds).

RecyclerView.Adapter.StateRestorationPolicy

Defines how this Adapter wants to restore its state after a view reconstruction (e.g. configuration change).