Balloon icon indicating copy to clipboard operation
Balloon copied to clipboard

TalkBack support when setFocusable(false)

Open alashow opened this issue 1 year ago • 1 comments

Re-opening https://github.com/skydoves/Balloon/issues/407 since the issue is still there

Please complete the following information:

  • Library Version 1.5.4
  • Affected Device Pixel 7 Pro, samsung SM-X700

Describe the Bug:

Using setFocusable(false) allows touching other views without having to click twice ( if setFocusable(true), need to click once outside balloon to dismiss ballon and another to click for intended view)

However, setFocusable(false) disables TalkBack behavior when balloon is shown. Only after clicking the ballon window TalkBack service announces ballon windows text.

alashow avatar Aug 25 '23 00:08 alashow

Hey @alashow, sorry for the delayed response. What if you call the function below to the balloon's content view like the example below?

balloon.bodyWindow.contentView.sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_FOCUSED)

skydoves avatar Aug 31 '23 11:08 skydoves