Edit Text Value
Not for use with personal data
EditText
elements must have their value (entered text) available to TalkBack.
warning
ContentDescriptions
on EditText
views can override the value on some versions of Android.
Supported within:
Impact
Issues found by this rule impact people with blindness.
EditText
elements should provide information where the Android OS expects. As a result, assistive technologies can communicate information predictably.
Confirmation
- Turn on TalkBack
- Focus on the element
- One of the following will happen:
- Accessible: TalkBack announces the entered text, for, and the associated label's
Text
. - Inaccessible: TalkBack either didn't announce the above information or announced it in the wrong order.
- Accessible: TalkBack announces the entered text, for, and the associated label's
How to Fix
EditText editText = .......; // Role: EditText
TextView label = .......; // Role: Label
label.setLabelFor(editText.getId()); // Associate the Checkbox with its Name