Prevent unwanted flicker due to innate WebView behavior

后端 未结 2 1938
北海茫月
北海茫月 2021-01-06 18:50

I am using an Android WebView to show some HTML content (a String with HTML tags to be precise) generated at runtime. The content has basically an HTML &l

相关标签:
2条回答
  • 2021-01-06 19:03

    There are some threads running on how to make scrolling and page turns e-ink friendly:

    http://github.com/aarddict/android/issues/28#issuecomment-3512595 http://www.mobileread.com/forums/showthread.php?p=1929476#post1929476

    0 讨论(0)
  • 2021-01-06 19:12

    Can you try something like this:

    if (_webView.getScrollY() + _webView.getHeight() > _webView.getContentHeight())
        _webView.scrollTo(0, _webView.getContentHeight() - _webView.getHeight());
    
    0 讨论(0)
提交回复
热议问题