如何使我的ImageView缩放? [英] How to make my ImageView zoomable?

查看:121
本文介绍了如何使我的ImageView缩放?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能帮关于如何使用矩阵scaletype放大了的ImageView以及如何使用翻译方法,以便它可以集中在中心?我已经使用web视图,以便能够使用缩放和滚动功能,我需要尝试,但它是不是很好看。

Can anyone help on how to use the matrix scaletype to zoom an imageview and also how to use the translate method so that it can be focused at the center? I have tried using webview to be able to use the zooming and scrolling functionalities i needed but it is not nice to look at.

推荐答案

我发现了一个<一个href="http://developer.sonymobile.com/knowledge-base/tutorials/android_tutorial/android-one-finger-zoom-tutorial-part-4/"相对=nofollow>教程的从博客分为4个部分如何缩放和平移的图像,这是相当不错的。它拥有C $ CS可以下载和一些说明示例$。它也有其他的教程。

I found a tutorial divided into 4 parts from a blog on how to zoom and pan an image and it is quite nice. It has sample codes that can be downloaded and some explanations. It also have other tutorials.

更新 - 指出,新的链接

Update - pointed the links to the new ones.

更新2 - 我发现了一个随时可以使用类ImageView的缩放功能。你看看这里

Update 2 - I found a ready-to-use class for ImageView zooming functionality. You check it out here.

这篇关于如何使我的ImageView缩放?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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