public class RecyclerViewAccessibilityDelegate
extends AccessibilityDelegateCompat

   ↳ androidx.core.view.AccessibilityDelegateCompat
     ↳ androidx.recyclerview.widget.RecyclerViewAccessibilityDelegate

The AccessibilityDelegate used by RecyclerView.

This class handles basic accessibility actions and delegates them to LayoutManager.


Nested classes

class RecyclerViewAccessibilityDelegate.ItemDelegate

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

Public constructors

RecyclerViewAccessibilityDelegate(RecyclerView recyclerView)

Public methods

AccessibilityDelegateCompat getItemDelegate()

Gets the AccessibilityDelegate for an individual item in the RecyclerView.

void onInitializeAccessibilityEvent(View host, AccessibilityEvent event)

Initializes an AccessibilityEvent with information about the the host View which is the event source.

void onInitializeAccessibilityNodeInfo(View host, AccessibilityNodeInfoCompat info)

Initializes an AccessibilityNodeInfoCompat with information about the host view.

boolean performAccessibilityAction(View host, int action, Bundle args)

Performs the specified accessibility action on the view.

Inherited methods

Public constructors


public RecyclerViewAccessibilityDelegate (RecyclerView recyclerView)

recyclerView RecyclerView

Public methods


public AccessibilityDelegateCompat getItemDelegate ()

Gets the AccessibilityDelegate for an individual item in the RecyclerView. A basic item delegate is provided by default, but you can override this method to provide a custom per-item delegate. For now, returning an AccessibilityDelegateCompat as opposed to an ItemDelegate will prevent use of the ViewCompat accessibility API on ite