Most visited

Recently visited

RecyclerView.AdapterDataObserver

public static abstract class RecyclerView.AdapterDataObserver
extends Object

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


观察者基类,用于观察对RecyclerView.Adapter更改。 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

RecyclerView.AdapterDataObserver ()

Public methods

onChanged

void onChanged ()

onItemRangeChanged

void onItemRangeChanged (int positionStart, 
                int itemCount, 
                Object payload)

Parameters
positionStart int
itemCount int
payload Object

onItemRangeChanged

void onItemRangeChanged (int positionStart, 
                int itemCount)

Parameters
positionStart int
itemCount int

onItemRangeInserted

void onItemRangeInserted (int positionStart, 
                int itemCount)

Parameters
positionStart int
itemCount int

onItemRangeMoved

void onItemRangeMoved (int fromPosition, 
                int toPosition, 
                int itemCount)

Parameters
fromPosition int
toPosition int
itemCount int

onItemRangeRemoved

void onItemRangeRemoved (int positionStart, 
                int itemCount)

Parameters
positionStart int
itemCount int

Hooray!