CheckBox Name identifies
CheckBox views and ensures both a name and value are available to TalkBack.
People using TalkBack are impacted most by accessibility issues found by this rule.
- Turn on TalkBack
- Attempt to focus the control
- One of the following will happen:
- Inaccessible: TalkBack only announces the value and role.
- Accessible: Both the name and value are read by TalkBack.
How to Fix
Provide an explicit name for the
CheckBox control by utilizing a
TextView and associating it with your
ContentDescription cannot be used.
CheckBox checkBox = .......; // Role: CheckBox TextView label = .......; // Role: Label label.setLabelFor(checkBox.getId()); // Associate the Checkbox with its Name