Skip to main content

Nested Control Issues

Interactive Android elements should not be nested inside other interactive elements, as this creates ambiguous focus behavior for assistive technologies.

WCAG Reference

Maps to: WCAG 4.1.2 Name, Role, Value | Applies to: WCAG 2.0, WCAG 2.1, WCAG 2.2 Introduced in: WCAG 2.0 | Level: A | Read the official specification →

What this rule checks

The scanner flags interactive views (buttons, switches, checkboxes) that are nested within other interactive containers (clickable layouts, other buttons), creating a confusing accessibility tree.

Why it matters

When TalkBack encounters nested interactive elements, it may focus on the outer container and announce a combined label that obscures the inner controls, or it may skip the inner controls entirely. Users cannot predictably reach or activate individual nested actions.

Common failure patterns

  • a clickable LinearLayout that contains a Button and a CheckBox as children
  • a list item with an onClickListener on the row and separate clickable actions inside it
  • nested RecyclerView items with overlapping click targets

Remediation guidance

  • flatten the interactive hierarchy: either the container or its children should be interactive, not both
  • use android:importantForAccessibility="no" on the container if individual child controls should receive focus
  • for list items with multiple actions, use AccessibilityAction to expose additional actions through TalkBack's actions menu
  • test by swiping through the screen with TalkBack to confirm each control is individually reachable

Test across 3000+ combinations of browsers, real devices & OS.

Book Demo

Help and Support

Related Articles