Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.

RecyclerView.AdapterDataObserver

public static abstract class RecyclerView.AdapterDataObserver
extends Object

java.lang.Object
   ↳ androidx.recyclerview.widget.RecyclerView.AdapterDataObserver


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

Summary

Public constructors

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)
void onStateRestorationPolicyChanged()

Called when the RecyclerView.Adapter.StateRestorationPolicy of the RecyclerView.Adapter changed.

Inherited methods

Public constructors

AdapterDataObserver

public AdapterDataObserver ()

Public methods

onChanged

public void onChanged ()

onItemRangeChanged

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

Parameters
positionStart int

itemCount int

payload Object

onItemRangeChanged

public void onItemRangeChanged (int positionStart, 
                int itemCount)

Parameters
positionStart int

itemCount int

onItemRangeInserted

public void onItemRangeInserted (int positionStart, 
                int itemCount)

Parameters
positionStart int

itemCount int

onItemRangeMoved

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

Parameters
fromPosition int

toPosition int

itemCount int

onItemRangeRemoved

public void onItemRangeRemoved (int positionStart, 
                int itemCount)

Parameters
positionStart int

itemCount int

onStateRestorationPolicyChanged

public void onStateRestorationPolicyChanged ()

Called when the RecyclerView.Adapter.StateRestorationPolicy of the RecyclerView.Adapter changed. When this method is called, the Adapter might be ready to restore its state if it has not already been restored.