Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 AS3 和 C++(移动版)中有一个非常简单的应用程序,它显示了纽约的地图,并允许用户在单击地图上的景点时平移、缩放和接收信息框。
我的问题是:如何编写简单的测试函数来检查平移和缩放是否正常工作?
我使用 flash Professional CC,它有一个很棒的模拟器,可以在 PC 上测试触控设备。
但是对于你想要的,你可能想要使用类似的东西
GestureDetector gestureDetector; View.OnTouchListener gestureListener;
签出:网格布局上的 Fling 手势检测
或使用跟踪手势事件检测并发送用于您的测试目的。