如何放大/缩小imageView

时间:2016-03-18 09:10:00

标签: android

我使用了this代码。

我有问题。 我需要缩放图像,我改变了代码:

enter image description here

原始图片是:

enter image description here

但是肖像是:

![enter image description here

在景观上它是:

![enter image description here

这不是全屏。为什么呢?

2 个答案:

答案 0 :(得分:1)

将此用户形象视图用于输入

https://github.com/MikeOrtiz/TouchImageView/blob/master/src/com/ortiz/touch/TouchImageView.java

它对我有用。它会帮助你。

答案 1 :(得分:0)

请尝试PhotoViewAttacher。工作非常好。您无需更改ImageView,只需按照说明附加imageView即可。我在我的一个应用程序中使用它,它运行得很好。

https://github.com/chrisbanes/PhotoView

相关问题