开发者

Drawing offscreen WebView and capturePicture issues

开发者 https://www.devze.com 2023-01-30 00:46 出处:网络
My goal is to turn a WebView into a Bitmap so I can add it to a homescreen widget. I have gotten WebView.capturePicture() to work fine; however, I cannot get the WebView to render without setting it a

My goal is to turn a WebView into a Bitmap so I can add it to a homescreen widget. I have gotten WebView.capturePicture() to work fine; however, I cannot get the WebView to render without setting it as the content layout or similar. As this is an app widget I won't be able to set it as a view.

Is it possible to render a WebView and save it to a bitmap without setting it as the content开发者_JAVA技巧 view?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号