File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Android and the fly likes Prevent TalkBack from announcing TextView title aloud Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "Prevent TalkBack from announcing TextView title aloud" Watch "Prevent TalkBack from announcing TextView title aloud" New topic

Prevent TalkBack from announcing TextView title aloud

Alexander Pavlov

Joined: Mar 30, 2013
Posts: 5
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?
Sabrina Alfonso

Joined: May 09, 2013
Posts: 1

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:


you can use the same codepoint in xml as well
I agree. Here's the link:
subject: Prevent TalkBack from announcing TextView title aloud
jQuery in Action, 3rd edition