I have a filters view which upon dismissing, I'd like to do 2 accessibility things:
- announce "$listSize items in list" since applying the filters will change the list size
- set focus to the "Add filters" button
I tried the following:
filtersButton.announceForAccessibility("$listSize items in list")
filtersButton.sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_FOCUSED)
I would expect TalkBack to read, in order:
- "20 items in list"
- "Filters button"
However, it usually skips the first read-out and only reads the text on filtersButton
. Sometimes it will read only part of the first before skipping to the second.
How do I force TalkBack to read out both accessibility events?