Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/202.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 视图';的contentDescription不能与TextToSpeech一起正常工作_Java_Android_Eclipse_Text To Speech - Fatal编程技术网

Java 视图';的contentDescription不能与TextToSpeech一起正常工作

Java 视图';的contentDescription不能与TextToSpeech一起正常工作,java,android,eclipse,text-to-speech,Java,Android,Eclipse,Text To Speech,我使用TextToSpeech并在xml中为ImageButton添加“android:contentDescription=“@string/custom_button”,从“@string/custom_button”读取值,并在speech中添加另一个“button” 例如: “@string/custom_button”=“custom button”映射到提到的ImageButton,读作“custom button button”。此按钮中没有文本。Id差异很大 如何去掉最后一个“按

我使用TextToSpeech并在xml中为ImageButton添加“android:contentDescription=“@string/custom_button”,从“@string/custom_button”读取值,并在speech中添加另一个“button”

例如:

“@string/custom_button”=“custom button”映射到提到的ImageButton,读作“custom button button”。此按钮中没有文本。Id差异很大


如何去掉最后一个“按钮”。它指的是TextToSpeech读取的所有视图。

根据我的工作/研究,Android会自动将“按钮”添加到按钮对话的末尾。我找不到任何文档打破了编码级别的可访问性,但从我收集的信息来看,如果开发人员忘记在内容描述中指出用户单击了按钮,他们可能会添加此功能。您无法删除android添加的word按钮。你能做的就是从你的自定义描述中删除它,这样它就只会说“自定义”。希望这有帮助