[英]Android 4.4.2 Accessibility Explore By Touch not working in app
I'm writing an app that behaves normally in Android 4.3 but does not in 4.4.2. 我正在编写一个在Android 4.3中正常运行但在4.4.2中不正常运行的应用。 The issue is that with Accessibility "Talk Back" feature turned on you should be able to explore by touch over the buttons of your app and have it announce the contentDescription. 问题在于,打开了“可访问性”“回话”功能后,您应该可以通过触摸应用程序的按钮进行浏览并宣布contentDescription。
This works fine in 4.3 but in 4.4.2 only the navigation drawer and items on it announce themselves. 在4.3中可以正常工作,但在4.4.2中,只有导航抽屉及其上的项目才会显示出来。 The rest of the app is all buttons and a fragment on the main activity. 该应用程序的其余部分是所有按钮和主要活动上的一个片段。
I should point out that the main activity uses TextToSpeech, I'm worried there is a new conflict here. 我应该指出,主要活动使用TextToSpeech,我担心这里会出现新的冲突。
Has anyone else seen this problem? 还有其他人看到过这个问题吗? Any suggestions on a solution? 关于解决方案有什么建议吗?
Thanks, Chuck Brandt 谢谢,查克·布兰特
Is the content that is not being spoken in a WebView? WebView中没有说的内容吗? Is the navigation drawer implemented via a DrawerLayout from the support library? 导航抽屉是否通过支持库中的DrawerLayout实现? If the latter is true, is the content announced when the navigation drawer is hidden (ie drawer closed)? 如果后者为真,那么隐藏导航抽屉(即关闭抽屉)时是否宣布内容?
I have fixed this issue. 我已经解决了这个问题。 It seems to be related to the fact that I had a group of buttons on a fragment, I moved them into the activity. 这似乎与以下事实有关:我在片段上有一组按钮,然后将它们移到了活动中。 I also had (temporarily) android:importantForAccessibility="noHideDescendants" in the outer LinearLayout, I removed it. 我还在外部LinearLayout中(临时)安装了android:importantForAccessibility =“ noHideDescendants”,将其删除。 I was probably trying all settings of that flag and that is the last one I used. 我可能正在尝试该标志的所有设置,而这是我使用的最后一个。 Like I say, not sure which one was most important to getting it to work, but it is working now. 就像我说的那样,不确定哪一个对使其工作最重要,但它现在正在工作。 Thank you for all your help. 谢谢你的帮助。 Chuck 卡盘
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.