Open desamtralized opened 7 years ago
Are you able to get the focus ?
Any solution?
I haven't had a chance to look into this issue yet, but a pull request would be welcome if you find a solution!
Until a better solution is determined, a decent workaround would be to implement an item touch listener as described in #38, then when the header is clicked you can manually send an accessibility announcement by doing something like this:
AccessibilityManager accessibilityManager = (AccessibilityManager) context.getSystemService(Context.ACCESSIBILITY_SERVICE);
if (accessibilityManager != null && accessibilityManager.isEnabled()) {
AccessibilityEvent event = AccessibilityEvent.obtain(AccessibilityEvent.TYPE_ANNOUNCEMENT);
event.getText().add("some text");
view.onInitializeAccessibilityEvent(event);
view.getParent().requestSendAccessibilityEvent(view, event);
}
It would be really cool if there was also the option to read the headers when they stick to the top of the screen...but I don't think that's possible at the moment.
Hello, I'm using this library in a project that requires accessibility. When using the TalkBack in a screen with "sticky headers" the headers can't be read or focused by the TalkBack (or accessibility inspector?).
Is there any workaround?
Thanks in advance.