0

All headers in the app should have the accessibility trait (heading), which should be read aloud by TalkBack. For example, CardView title should be read as "My Title Heading" I implemented using setContentDescription but is there any other method to announce Headings like in iOs there is accessibilty traits.

musica
  • 1,373
  • 3
  • 15
  • 34

1 Answers1

1

I'm not an android developer but found java.lang.Object > android.R.styleable which has a View_accessibilityHeading property. What you're looking for is a way to specify the role of the object so that you can satisfy WCAG 4.1.2. There are many types of roles. See https://www.w3.org/TR/wai-aria-1.1/#role_definitions for a list of roles available for HTML developers. You should have a similar list of roles for Android.

slugolicious
  • 15,824
  • 2
  • 29
  • 43