简体   繁体   English

Android 4.4.2辅助功能“按触摸浏览”在应用中不起作用

[英]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.

相关问题 启用具有辅助功能的手势(例如触摸浏览) - Capturing gestures with accessibility features on (such as explore-by-touch) Android 2.3.3触摸浏览 - Android 2.3.3 touch by explore Android 2.0.4中的姜饼选项类似于Android 4.0.4中的可访问性选项(“触摸探索”)ICECREAMSANDWICH - What is the option in Android 2.3.3 Gingerbread LIKE THE ACCESSIBILITY OPTION (“Explore by touch”) in Android 4.0.4 ICECREAMSANDWICH 自Android 4.4.2起,应用程序操作不起作用 - App operations not working since Android 4.4.2 android SmsManager 在 4.4.2 中不起作用 - android SmsManager is not working in 4.4.2 如何在可访问性打开时禁用 Jelly-Bean 上的“通过触摸探索”? - How to disable Explore By Touch on Jelly-Bean while accessibility is on? 如何关闭某些无障碍服务的触摸探索 - How to switch off explore by touch for some accessibility service Css滤镜模糊功能在Cordova app,Android 4.4.2,Nexus 4中无法使用 - Css filter blur is not working in Cordova app, Android 4.4.2, Nexus 4 Ionic V4应用程序无法在Android 4.4.2上运行,但它确实有效 - Ionic V4 app doesn't work on android 4.4.2 but it was working selectableItemBackground不适用于Android 4.4.2设备 - selectableItemBackground not working for Android 4.4.2 Device
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM