简体   繁体   English

TalkBack无法在我自己的应用程序中运行

[英]TalkBack doesn't work in my own application

I have enabled TalkBack in Ice Cream Sandwich. 我已在“冰淇淋三明治”中启用“话语提示”。 And it doesn't speak buttons,list views in the application I have developed.Why is that? 而且它不讲按钮,在我开发的应用程序中列出视图。为什么?

You need to add android:contentDescription attributes to your widgets for them to be accessible via TalkBack. 您需要将android:contentDescription属性添加到小部件中,以便它们可以通过“话语提示”进行访问。 Quoting the documentation : 引用文档

Add descriptive text to user interface controls in your application using the android:contentDescription attribute. 使用android:contentDescription属性将描述性文本添加到应用程序中的用户界面控件。 Pay particular attention to ImageButton, ImageView and CheckBox. 要特别注意ImageButton,ImageView和CheckBox。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM