Android - prevent TalkBack from announcing TextView title aloud

后端 未结 6 498
北恋
北恋 2020-12-06 10:59

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

6条回答
  •  [愿得一人]
    2020-12-06 11:24

    I was trying to do the same today, and was able to set an 'empty' contentDescription on a TextView like so (using a non-breaking whitespace):

    decorativeTextView.setContentDescription("\u00A0"); 
    

    now TalkBack doesn't say anything for that TextView.

    but I agree with Nick about leaving the label as readable in your case, because hint is only read for empty EditTexts.

提交回复
热议问题