Android的imageview的滚动显示全高质量的图像 [英] android imageview scrolling to display full high quality image

查看:693
本文介绍了Android的imageview的滚动显示全高质量的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在显示图像,并把它的顶部的图标...点击该图标将显示图像的放大版...

i am working on displaying an image and placing an icon on top of it... clicking the icon will show an enlarged version of the image...

虽然把ImageView的拿着一个LinearLayout中的图像缩放图像以对话框的宽度,问题是,我需要显示在对话框中的图像,但图像是非常高的分辨率,因此远远大于宽度对话框...

though putting the imageview holding the image in a LinearLayout scales the image to the width of the dialog, the problem is that i need to display the image in a dialog but the image is very high resolution and hence is far bigger than the width of the dialog...

我需要显示的实际图像与滚动的两种方式,看整体形象......但每当我试图把的ImageView在滚动视图我的ImageView顶部是空白......又一次虽然图像滚动向下宽度缩放到对话框的宽度......

I need to show the actual image with scrolling for both ways to see the whole image... But whenever i try putting the imageView in a scrollview the top of my imageview is blank... and again though image scrolls downwards the width is scaled to the width of the dialog...

Helppppppppp家伙......

Helppppppppp guys....

推荐答案

感谢名单的帮助androidbase ......我找到了解决办法...其实,我们可以说,它是一种替代方法,但比其他任何解决方案,我能想到的更好。 ..

Thanx for your help androidbase... I found the solution... Actually we can say its a workaround but better than any other solution i can think of...

其实我做什么是我执行的WebView 和直接使用 webview.loadurl(myurl)加载图像的URL在里面;

Actually what i do is that i implement webview and directly load the image url in it using webview.loadurl(myurl);

和进一步我启用了变焦功能也因此,我得到一个全能完整的变焦功能...

and further i enabled the zoom featured too hence i get an allround complete zooming capabilities...

感谢名单全部4个回合的帮助

Thanx all 4 ur help

这篇关于Android的imageview的滚动显示全高质量的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆