aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Prevent TalkBack from announcing TextView title aloud" Watch "Prevent TalkBack from announcing TextView title aloud" New topic
Author

Prevent TalkBack from announcing TextView title aloud

Alexander Pavlov
Greenhorn

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:

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

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:

aTextView.setContentDescription("\u00A0");

you can use the same codepoint in xml as well
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Prevent TalkBack from announcing TextView title aloud