We can populate a RecyclerView
with items and, on binding, we can mark some of those items as 'headings' for accessibility.
This means that in the 'headings' traversal mode of TalkBack, the user can navigate directly between them.
However, a RecyclerView
obviously binds and unbinds children as it scrolls. At any one time, there may only be a small subset of the total heading items loaded into view holders. Traversal between only those items is unhelpful and confusing.
Is there a way, or even best practice, to provision the RecyclerView
such that we simultaneously satisfy (a) performant view recycling and (b) meaningful traversal for accessibility across the entire set of content?