Accessibility help needed!
I have a drawer opening and I wish the TalkBack screen reader to stay inside this drawer until the user decides to close it.
I'm asking the android screen reader to move to the opened drawer using:
mDrawerView.sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_FOCUSED);
And it works perfectly, the drawer is focused and the user can move with the screen reader next within the drawer.
The issue is, the drawer is not full screen and the user is not stopped on the end of the drawer, he keeps moving forward with the screen reader to controls below the drawer.
How can I force the reader to stay within the drawer limits?
This is easily achieved on iOS using:
drawerView.accessibilityViewIsModal = true
UIAccessibility.post(notification: .screenChanged, argument: drawerView)
By calling this on iOS the screen reader circulates the controls within the view hierarchy I provided.
Is there anything similar I can do with Android??