[英]Android Drag, Pinch Scale, and Rotate Objects
Does anyone have a resource or suggestion on how to learn how to do pinch scale, drag/pan, and rotation of objects on Android. 是否有人有资源或关于如何学习如何在Android上进行缩放,拖动/移动和旋转对象的建议。 I have completed an app for iOS and all of these features were seamless integrated, but I'm not sure where to start with Android.
我已经完成了一个适用于iOS的应用程序,并且所有这些功能都已无缝集成,但是我不确定从Android开始。
The purpose of the app is to simply drag images from a menu onto a "canvas" and rotate/scale those images. 该应用程序的目的是简单地将图像从菜单拖动到“画布”上并旋转/缩放这些图像。
Do I use a surface view and simply drag on ImageViews? 我是否使用表面视图并仅在ImageViews上拖动? Does Android have pre built gestures (like pinch)?
Android是否有预先构建的手势(例如捏)? How do I work with the point coordinate system to have objects move where the finger is touching?
如何使用点坐标系使对象移动到手指触摸的地方?
Could someone point me in the right direction so I can learn how to do this? 有人能指出我正确的方向,以便我可以学习如何做吗?
Here is the perfect tutorial for you: 这是最适合您的教程:
http://www.zdnet.com/blog/burnette/how-to-use-multi-touch-in-android-2-part-6-implementing-the-pinch-zoom-gesture/1847?tag=content;siu-container http://www.zdnet.com/blog/burnette/how-to-use-multi-touch-in-android-2-part-6-implementing-the-pinch-zoom-gesture/1847?tag=content;烧容器
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.