Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android talkback announce "in list of X item" at the ending of listview

In some devices (nexus) when we tap on the first item in listview it will talkback as list item + " in list of X item". How can we remove the text " in list of X item"?

Please share your thought

Thanks in Advance

like image 562
Azeela Avatar asked Jan 15 '19 06:01

Azeela


1 Answers

I found a solution where you set weather the (RecyclerView or ListView) should be important for Accessibility directly.

If you set it to individual views items in the list, Talkback will still announce "x items" the first time that list gets created.

In Kotlin: "dataBinding.customRecyclerView.importantForAccessibility = View.IMPORTANT_FOR_ACCESSIBILITY_NO

like image 128
JuJu Juned Avatar answered Sep 18 '22 23:09

JuJu Juned