Package tds.androidx.recyclerview.widget
See: Description
-
Interface Summary Interface Description ViewDropHandler An interface which can be implemented by LayoutManager for better integration with ItemTouchHelper. ListUpdateCallback An interface that can receive Update operations that are applied to a list. ListListener Listener for when the current List is updated. ItemTouchUIUtil Utility class for ItemTouchHelper which handles item transformations for different API versions. LayoutPrefetchRegistry Interface for LayoutManagers to request items to be prefetched, based on position, withspecified distance from viewport, which indicates priority. OnItemTouchListener An OnItemTouchListener allows the application to intercept touch events in progress at theview hierarchy level of the RecyclerView before those touch events are considered forRecyclerView's own scrolling behavior. RecyclerListener A RecyclerListener can be set on a RecyclerView to receive messages whenevera view is recycled. OnChildAttachStateChangeListener A Listener interface that can be attached to a RecylcerView to get notifiedwhenever a ViewHolder is attached to or detached from RecyclerView. ScrollVectorProvider An interface which is optionally implemented by custom LayoutManager to provide a hint to a SmoothScroller about the location of the target position. ItemAnimatorFinishedListener This interface is used to inform listeners when all pending or running animationsin an ItemAnimator are finished. ChildDrawingOrderCallback A callback interface that can be used to alter the drawing order of RecyclerView children. -
Class Summary Class Description Callback This class is the contract between ItemTouchHelper and your application. SimpleCallback A simple wrapper to the default Callback which you can construct with drag and swipedirections and this class will handle the flag callbacks. ItemTouchHelper This is a utility class to add swipe to dismiss and drag & drop support to RecyclerView. Builder Builder class for AsyncDifferConfig. AsyncDifferConfig Configuration object for ListAdapter, AsyncListDiffer, and similar background-thread list diffing adapter logic. 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. DataCallback The callback that provides data access for AsyncListUtil. ViewCallback The callback that links AsyncListUtil with the list view. AsyncListUtil A utility class that supports asynchronous content loading. OrientationHelper Helper class for LayoutManagers to abstract measurements depending on the View's orientation. DefaultItemAnimator This implementation of RecyclerView.ItemAnimator provides basic animations on remove, add, and move events that happen to the items in a RecyclerView. BatchingListUpdateCallback Wraps a ListUpdateCallback callback and batches operations that can be merged. 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. Callback A Callback class used by DiffUtil while calculating the diff between two lists. ItemCallback Callback for calculating the diff between two non-null items in a list. DiffResult This class holds the information about the result of a calculateDiff call. 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. AsyncListDiffer Helper for computing the difference between two lists via DiffUtil on a background thread. SortedListAdapterCallback A SortedList.Callback implementation that can bind a SortedList to a RecyclerView.Adapter. LayoutParams LayoutParams used by StaggeredGridLayoutManager. SavedState StaggeredGridLayoutManager A LayoutManager that lays out children in a staggered grid formation. Callback The class that controls the behavior of the SortedList. BatchedCallback A callback implementation that can batch notify events dispatched by the SortedList. 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. PagerSnapHelper Implementation of the SnapHelper supporting pager style snapping in either vertical or horizontal orientation. SpanSizeLookup A helper class to provide the number of spans each item occupies. DefaultSpanSizeLookup Default implementation for SpanSizeLookup. LayoutParams LayoutParams used by GridLayoutManager. GridLayoutManager A RecyclerView.LayoutManager implementations that lays out items in a grid. LinearSnapHelper Implementation of the SnapHelper supporting snapping in either vertical or horizontal orientation. AdapterListUpdateCallback ListUpdateCallback that dispatches update events to the given adapter. DividerItemDecoration DividerItemDecoration is a RecyclerView.ItemDecoration that can be used as a divider between items of a LinearLayoutManager. ListAdapter RecyclerView.Adapter base class for presenting List data in a RecyclerView, including computing diffs between Lists on a background thread. EdgeEffectFactory EdgeEffectFactory lets you customize the over-scroll edge effect for RecyclerViews. RecycledViewPool RecycledViewPool lets you share Views between multiple RecyclerViews. Recycler A Recycler is responsible for managing scrapped or detached item views for reuse. ViewCacheExtension ViewCacheExtension is a helper class to provide an additional layer of view caching that canbe controlled by the developer. Adapter Base class for an AdapterAdapters provide a binding from an app-specific data set to views that are displayedwithin a RecyclerView. Properties Some general properties that a LayoutManager may want to use. LayoutManager A LayoutManager
is responsible for measuring and positioning item viewswithin aRecyclerView
as well as determining the policy for when to recycleitem views that are no longer visible to the user.ItemDecoration An ItemDecoration allows the application to add a special drawing and layout offsetto specific item views from the adapter's data set. SimpleOnItemTouchListener An implementation of OnItemTouchListener that has empty method bodiesand default return values. OnScrollListener An OnScrollListener can be added to a RecyclerView to receive messages when a scrolling eventhas occurred on that RecyclerView. ViewHolder A ViewHolder describes an item view and metadata about its place within the RecyclerView. LayoutParams LayoutParams subclass for children of RecyclerView. AdapterDataObserver Observer base class for watching changes to an Adapter. Action Holds information about a smooth scroll request by a SmoothScroller. SmoothScroller Base class for smooth scrolling. SavedState This is public so that the CREATOR can be accessed on cold launch. State Contains useful information about the current RecyclerView state like target scrollposition or view focus. OnFlingListener This class defines the behavior of fling if the developer wishes to handle it. ItemHolderInfo A simple data structure that holds information about an item's bounds.This information is used in calculating item animations. ItemAnimator This class defines the animations that take place on items as changes are madeto the adapter.Subclasses of ItemAnimator can be used to implement custom animations for actions onViewHolder items. RecyclerView A flexible view for providing a limited window into a large data set. SavedState LinearLayoutManager A RecyclerView.LayoutManager implementation which provides similar functionality to android.widget.ListView. Builder The builder for Config class. Config The configuration object for a ConcatAdapter. ConcatAdapter An Adapter implementation that presents the contents of multiple adapters in sequence. -
Annotation Summary Annotation Description Orientation EdgeDirection AdapterChanges The set of flags that might be passed to recordPreLayoutInformation. -
Enum Summary Enum Description StateRestorationPolicy Defines how this Adapter wants to restore its state after a view reconstruction (e.g.configuration change). StableIdMode Defines how ConcatAdapter handle stable ids (hasStableIds).