Android webview do not scroll down accessibility marker

余生长醉 提交于 2019-12-13 02:06:56

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!