通过web视图显示的Android局部图像模糊 [英] Android local image displayed via webview is blurry
问题描述
我有一个web视图从资产/文件夹加载图像。显示图像放大100%(或更多),并且不具有相同清晰度的实像在100%
I have a webview loading an image from the assets/ folder. The image is displayed zoomed 100% (or more) and does not have the same clarity as the real image has at 100%
如何设置web视图来显示图像缩小,而不是降尺度的质量呢?
How can I set the webview to display the image zoomed out AND not downscale the quality?
另外,我使用的WebView,因为ImageView的需要我重新塑造平滑滚动,点击放大,捏放大等
Also, I am using a webview because ImageView would require me to reinvent smooth scrolling, tap to zoom, pinch to zoom, etc
洞察AP preciated
Insight appreciated
推荐答案
我记得这个问题。 web视图自动降频较大的图像可能会出现内存不足的担忧。如果你想在质量的控制,你可能需要使用ImageView的。您也可以尝试使用该库的应用程序,而不是。
I recall that problem. Webview automatically downsamples larger images probably out of memory concerns. If you want control of the quality you probably have to use ImageView. You could also try to use the gallery application instead.
这篇关于通过web视图显示的Android局部图像模糊的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!