Android:如何:使用 2.1 up 的多点触控功能实现图像拖动和缩放扩展 ImageView

标签 android drag android-imageview multi-touch zooming

当我拖动或缩放图像时,我有这种行为。

enter image description here

如果您注意到,图像在拖动过程中似乎离开了之前的状态。 感谢任何输入。

最佳答案

请尝试构建以下项目。

https://github.com/gabu/AndroidSDK-RecipeBook/tree/master/Recipe060

这个项目在 Nexus S/Android 2.3.4 上运行良好

请比较你的代码和这个项目。

关于Android:如何:使用 2.1 up 的多点触控功能实现图像拖动和缩放扩展 ImageView,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7356031/

相关文章:

android - 将 ActionBarSherlock 与新的 SupportMapFragment 一起使用

delphi - 如何在TListView.OnColumnDragged中找到哪一列被拖动?

android - Libgdx 触摸并拖动屏幕上的任意位置以移动 Sprite

android - 使用UI-Thread更新ImageView的位图

java - 如何防止 imageview 中的图像被裁剪成正方形?

java - 将textview内容和imageview发送到电子邮件

android - 使用 GSON 读取 JSON 数据

Android:ImageView 旋转比例

android - Flash 和 Android - 共同的 future ?

java - 在 JPanel 中拖动以移动 Line2D