question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[TextInputLayout] Issues with Talkback interaction

See original GitHub issue

Description: I have been running into issues surrounding Talkback accessibility and the error message with the TextInputLayout. When Talkback-testing the accessibility of TextInputLayout, which surrounds a TextInputEditText, the TextInputLayout is interacting unusually with Talkback announcements. It announces the validation error message set on the text field whenever a character is being typed or deleted regardless of if the error is active or not.

Expected behavior: Using TextInputLayout in coordination with TextInputEditText should be announcing the character being typed and deleted in Talkback instead of announcing the error message of the text field. It should only announce the error message once on the text field when it is valid, not in multiple successions on any character addition or deletion.

Screenshots: Here it would read “invalid aisle” multiple times as I type or delete a character Screen Shot 2019-09-16 at 2 03 15 PM

Source code: The code snippet which is causing this issue. Please consider attaching a minimal sample app that reproduces the issue. Layout being used: `<com.google.android.material.textfield.TextInputLayout xmlns:android=“http://schemas.android.com/apk/res/android” xmlns:app=“http://schemas.android.com/apk/res-auto” android:id=“@+id/single_text_input_layout” android:layout_height=“wrap_content” android:layout_width=“match_parent” app:helperTextEnabled=“true” app:errorIconDrawable=“@null” style=“@style/textFieldLayout”>

<com.google.android.material.textfield.TextInputEditText
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:id="@+id/single_text_input_edit_text"
        style="@style/singleTextFieldEditText"/>

</com.google.android.material.textfield.TextInputLayout>`

Android API version: Marshmallow

Material Library version: 1.1.0-alpha10

Device: Device on which the bug was encountered here: Zebra TC51

To help us triage faster, please check to make sure you are using the latest version of the library. ✅

We also happily accept pull requests.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ldjcmucommented, Sep 18, 2019

Thanks for this report. We’ll look into reducing the error verbalization in the case you originally described.

0reactions
harshfastcommented, Nov 17, 2022

@drchen @kenzieFlick Yes, this is still an issue, how to fix it. Error text is announced on every input.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android Accessibility — Resolving common Talkback issues
This article shows some commonly encountered Talkback issues and strategies used to resolve them in Microsoft To Do Android team.
Read more >
Android TalkBack inconsistency in TextInputLayout
I'm attempting to work around a TalkBack accessibility event issue with a TextInputLayout and TextInputEditText , and I've noticed what gets ...
Read more >
Principles for improving app accessibility - Android Developers
TalkBack : Helps people who have low vision or are blind. Announces content through a synthesized voice, and performs actions on an app...
Read more >
Content labels - Android Accessibility Help
In some cases, such as when information is conveyed graphically. ... Don't instruct the user how to specifically interact with the element.
Read more >
Making Applications Accessible | Android Developers - MIT
Test your application using only accessibility navigation services and features. Turn on TalkBack and Explore by Touch, and then try using your application ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found