Home In list of X items accessibility issue in recycler view
Post
Cancel

In list of X items accessibility issue in recycler view

If you have enabled accessibility for your application, then you might have noticed first time you navigate to recycler view, your talk back might announce the contents of the recycler row along with the additional info of in the list of x items.

If you are like me ever wondering on how we can get rid of it, there is a small hack that you can apply in your LayoutManager you need to override a method that is responsible getRowCountForAccessibility and return 0.

PS: not that proud of the solution but “it works”

Reference:

RecyclerView.java

This post is licensed under CC BY 4.0 by the author.