Improve Accessibility Reading on Android
und3f1n3d opened this issue · comments
Bug report
Summary
- When button is selected, the button is not read as 'Selected' and as a 'Button'.
- It doesn't read the total of items, nor current index, something like '1 out of 2', or '2 out of 2'. Example, Google Play Store => Top Charts => the list of "Top Free", "Top Grossing", "Trending"... that kind of idea.
Environment info
Library version: 2.1.0
Steps to reproduce
- Turn on Talkback
- selectedIndex = 0
- Swipe to the first element, reading: 'Photo, Double Tap to activate.'
- Swipe to the second element, reading: 'Settings, Double Tap to activate.'
Describe what you expected to happen:
- Turn on Talkback
- selectedIndex = 0
- Swipe to the first element, expected reading: 'Selected. Photo Button. 1 out of 2. Double Tap to activate.'
- Swipe to the second element, expected reading: 'Settings Button. 2 out of 2. Double Tap to activate.'
Reproducible sample code
<SegmentedControl
selectedIndex={0}
values={['Photos', 'Settings']}
/>
Partial fix: #219