• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Prevent TalkBack from announcing TextView title aloud

 
Alexander Pavlov
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:

strings.xml

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?
 
Sabrina Alfonso
Greenhorn
Posts: 1
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:

aTextView.setContentDescription("\u00A0");

you can use the same codepoint in xml as well
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic