我想要像 google play shop 的一些水动态壁纸动画那样的 imageview 动画,但是,我需要 myproject 上的 imageview 中的动画波纹效果。如果你不明白我的要求,我想要 imageview 动画,如下面的代码项目示例:http:// www.codeproject.com/Articles/1073/Interactive-water-effect
是否有可能实现图像视图。如果可能的话怎么做?任何人对我的帮助都非常感谢!
谢谢!
我想要像 google play shop 的一些水动态壁纸动画那样的 imageview 动画,但是,我需要 myproject 上的 imageview 中的动画波纹效果。如果你不明白我的要求,我想要 imageview 动画,如下面的代码项目示例:http:// www.codeproject.com/Articles/1073/Interactive-water-effect
是否有可能实现图像视图。如果可能的话怎么做?任何人对我的帮助都非常感谢!
谢谢!
That project you linked (and probably anything with this effect) is going to use OpenGL (not Canvas
and .onDraw();
). You wont be able to use an ImageView
but you can use a GLSurfaceView
, which shouldn't cause too much trouble. I am not an expert on the subject but the link you gave has excellent code fragments to get you started.
I'm quite sure that you could achieve something like that by extending the ImageView class and messing around in the .onDraw() method, calling .invalidate() constantly and applying animations. But I'm also quite sure that it'd be awfully slow/laggy and look like hell.
I recommend using a SurfaceView to achieve such an effect.