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.
按照Android 沿路径移动对象的解释,我绘制了一个圆形路径,并可以沿它为对象设置动画
现在我需要使用手指沿着相同的路径移动相同的对象。基本上它应该像拖放一样,但使用路径作为指南。
我怎么能做这样的事情?
提前致谢,
您可以尝试获取触摸点的像素颜色,然后您可以检查该颜色是否与预定义的路径颜色匹配。我有同样的问题,发现这非常有用。