Java 视图';的contentDescription不能与TextToSpeech一起正常工作
我使用TextToSpeech并在xml中为ImageButton添加“android:contentDescription=“@string/custom_button”,从“@string/custom_button”读取值,并在speech中添加另一个“button” 例如: “@string/custom_button”=“custom button”映射到提到的ImageButton,读作“custom button button”。此按钮中没有文本。Id差异很大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读取的所有视图。根据我的工作/研究,Android会自动将“按钮”添加到按钮对话的末尾。我找不到任何文档打破了编码级别的可访问性,但从我收集的信息来看,如果开发人员忘记在内容描述中指出用户单击了按钮,他们可能会添加此功能。您无法删除android添加的word按钮。你能做的就是从你的自定义描述中删除它,这样它就只会说“自定义”。希望这有帮助