How to capture a webview to bitmap in Android?

后端 未结 2 2013
北恋
北恋 2021-01-04 14:26

I have a webview, and I need to scroll down to view all the content. Now, I want to capture the entire of the webview to a bitmap.

I looked for man

2条回答
  •  轮回少年
    2021-01-04 15:06

    I found out the solution. Take a look of this.

    I used the onDraw to replace the capturePicture functon which is deprecated in API 19. If you have any better solutions, please tell me and I appreciate that. Thanks!

    Which can replace capturePicture function

提交回复
热议问题