简体   繁体   中英

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. 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.

This works fine in 4.3 but in 4.4.2 only the navigation drawer and items on it announce themselves. 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.

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? Is the navigation drawer implemented via a DrawerLayout from the support library? 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. 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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