WebView 内容中的位图不显示
我尝试从 Android 中的 WebView 制作位图。但是,当我从 WebView 创建位图时,它已创建,但内容未显示(空白屏幕)。我还尝试过 WebViewClient 在页面完成后显示内容。但无法显示内容。有谁知道这个问题的答案吗?
谢谢。
I try to make a Bitmap from a WebView in Android. But when I create a Bitmap from WebView, it is created but content does not appear (blank screen). I have also tried WebViewClient to display content after page has been finished. But content cannot be displayed. Is there anybody who knows the answer of this?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这对我有用:
This works for me:
这是可行的..但是如果图像很小,位图中会有空白空间..
在 webview 中查看的图像被转换为位图。
This works..but you will have blank space in bitmap if image is small..
The image viewed in webview is converted to bitmap.