android - How can I detect accessibility gestures from within a custom view? -
i need make custom view detect , react jellybean's accessibility gestures (eg: scroll page, swipe focus). example appreciated. can't seem find definitive in docs.
i able intercept accessibilityevents writing custom accessibilitydelegate (call view.setaccessibilitydelegate()): http://developer.android.com/reference/android/view/view.accessibilitydelegate.html
unfortunately have not been able find way intercept swipe focus event tabs between view elements. think may able writing accessibilityservice , having pass information app, seems accessibility services designed used multiple apps, , have manually enabled in accessibility options user, , order in receive events depends on order in enabled.
Comments
Post a Comment