问题
In my app webview have HTML text ,when I run app in accessibility mode (Talkback) it do not move accessibility marker down to content on webview, using two finger swipe I can swipe down.
How can I set webview so that it marker scroll down when user taps.
回答1:
On recent versions of Android, Chrome and WebView use exactly the same engine.
Test the same URL / HTML content in Chrome on the same device. If it's not accessible there, then the problem is with your content. Post a new question about the particular content.
If the same URL / HTML content works in Chrome but not in the WebView in your app, the problem is probably with your app's code. Perhaps you're intercepting hover events, preventing the WebView from having a chance to implement touch exploration.
回答2:
Not many details, hard to be sure. One thing to remember, is that native web views are not necessarily accessible by default. Make sure when you attach your WebView you set its accessibilityDelegate.
yourWebView.setAccessibilityDelegate(new AccessibilityDelegate());
来源:https://stackoverflow.com/questions/32570120/android-webview-do-not-scroll-down-accessibility-marker