I am developing an accessible android application where people would be using Explore by Touch and TalkBack accessibility services to use my application.
This is my Android XML code:
TextView displays the title "Forename" and EditText allows me to enter some details in the form field. The problem I have is that when I drag my finger across the screen by using Explore by Touch, TalkBack picks up the title of the TextView and announces it aloud as "Forename". I want the TextView to only display text and not provide any audible feedback.
I have set contentDescription to @null as you can see from the code above, but TalkBack still announces "Forename" when my finger is located over the TextView.
I have also tried setting contentDescription in my Java class:
However, I still get the same problem. Is there any other way to set contentDescription to null/empty and prevent TalkBack from announcing it aloud?
whitespace seems to be removed or collapsed, so TalkBack treats it as not set, and if a TextView's contentDescription's not set, it defaults to reading the text.
but I had success setting a nonbreak whitespace character.
I did it in code with unicode code point for the character: