Skip content on Android
It can be helpful for users to skip repeated blocks of content. Most apps have content which appears on multiple screens. It takes longer for users of using assistive technologies to get navigate past repeated content. Adding the ability to skip past repeated content helps these users to navigate quicker.
On Android, skipping content is mostly relevant to TalkBack
users. TalkBack includes a local context menu
which allows users to jump to the following content types:
Headings
Links
Controls
Text
Paragraphs
Lines
Characters
Words
Jumping to headings
and links
is used most often.
Provide appropriate accessibility markup to your content by using ViewCompat
and AccessibilityNodeInfoCompat
.
// Mark headings
ViewCompat.setAccessibilityHeading(heading, true)
// Mark links
ViewCompat.enableAccessibleClickableSpanSupport(link)