WebView.draw() not properly working on latest Android System WebView Update

前端 未结 1 985
予麋鹿
予麋鹿 2020-12-09 18:28

I\'m currently using WebView.draw() to take a screenshot of the entire WebView and save it into a Bitmap (based off of this solution). It has worked perfectly u

相关标签:
1条回答
  • 2020-12-09 18:51

    You need to call WebView.enableSlowWholeDocumentDraw() before creating any WebViews. That is, if you have any WebViews in your layout, make sure you call this method before calling setContentView() in your onCreate().

    0 讨论(0)
提交回复
热议问题