Skip to content

Most visited

Recently visited

navigation

RecyclerView.AdapterDataObserver

public static abstract class RecyclerView.AdapterDataObserver
extends Object

java.lang.Object
   ↳ android.support.v7.widget.RecyclerView.AdapterDataObserver


Observer base class for watching changes to an RecyclerView.Adapter. See registerAdapterDataObserver(AdapterDataObserver).

Summary

Public constructors

RecyclerView.AdapterDataObserver()

Public methods

void onChanged()
void onItemRangeChanged(int positionStart, int itemCount, Object payload)
void onItemRangeChanged(int positionStart, int itemCount)
void onItemRangeInserted(int positionStart, int itemCount)
void onItemRangeMoved(int fromPosition, int toPosition, int itemCount)
void onItemRangeRemoved(int positionStart, int itemCount)

Inherited methods

From class java.lang.Object

Public constructors

RecyclerView.AdapterDataObserver

added in version 22.0.0
RecyclerView.AdapterDataObserver ()

Public methods

onChanged

added in version 22.0.0
void onChanged ()

onItemRangeChanged

added in version 23.0.0
void onItemRangeChanged (int positionStart, 
                int itemCount, 
                Object payload)

Parameters
positionStart int
itemCount int
payload Object

onItemRangeChanged

added in version 22.0.0
void onItemRangeChanged (int positionStart, 
                int itemCount)

Parameters
positionStart int
itemCount int

onItemRangeInserted

added in version 22.0.0
void onItemRangeInserted (int positionStart, 
                int itemCount)

Parameters
positionStart int
itemCount int

onItemRangeMoved

added in version 22.0.0
void onItemRangeMoved (int fromPosition, 
                int toPosition, 
                int itemCount)

Parameters
fromPosition int
toPosition int
itemCount int

onItemRangeRemoved

added in version 22.0.0
void onItemRangeRemoved (int positionStart, 
                int itemCount)

Parameters
positionStart int
itemCount int
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.