UI patterns and custom accessibility actions
summary
Shows how to expose swipe, drag-and-drop and icon actions to accessibility services by using ViewCompat.addAccessibilityAction to attach labels and callbacks to the task view, tested against TalkBack and Switch Access. Swipe-to-archive and move up/move down actions work when routed to existing callbacks; star/unstar becomes usable and scalable when the icon is set to markImportantForAccessibility=false and its logic is a custom action. Remember to save and remove action IDs on rebind; prefer manual testing and use the Accessibility Test Framework for automation.
AI-written summary · about
chapters (20)
- 0:00Introduction to talk
- 1:19Demo of task manager app
- 3:04Accessibility limitations explained
- 5:30How accessibility services work
- 6:34Switch Access overview
- 8:18Switch Access demo
- 9:24TalkBack overview
- 10:27TalkBack demo
- 12:17Adding archive action
- 14:48Switch Access with archive action
- 16:13TalkBack with archive action
- 18:04Adding drag and drop actions
- 19:51Switch Access with drag actions
- 20:35TalkBack with drag actions
- 23:27Fixing star and unstar pattern
- 26:57Switch Access with star action
- 28:44TalkBack with star action
- 30:34Best practices for accessibility
- 31:16Lifecycle and API details
- 33:51Q&A session
