动画形象以及在Android道路? [英] Animate image along path on Android?

查看:193
本文介绍了动画形象以及在Android道路?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:
  的Andr​​oid,移动位图沿路径?

有没有一种方式与在iPhone上CGPath动画以及对Android路径的ImageView的立场?我已经走遍了网络的解决方案,这一点,但没有人甚至似乎在询问此事。我没有看到在Android文档描述此功能的任何东西。

Is there a way to animate an ImageView's position along a path on the Android as with a CGPath on the iPhone? I have scoured the web for a solution to this, but no one has even seemed to ask about it. I didn't see anything in the Android docs describing this functionality.

推荐答案

我创建动画的一个子类名为PathAnimation,可沿路径动画。

I created a subclass of Animation named PathAnimation, which can animate along a path.

您可以只创建一个新的PathAnimation与路径,并使用它像任何其他动画。

You can just create a new PathAnimation with a Path, and use it like any other Animations.

https://github.com/coocood/PathAnimation

这篇关于动画形象以及在Android道路?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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