Reputation: 31
I'm working on an android application and made 120 frames that mimic a custom countdown. The two animations I need to overlay is the custom countdown and an actual timer. I looked into AnimationSet, but ran into the issue of making an Animation object, where I had to add 120 frames before actually using it, which caused an out of memory exception. The second approach was to use LayerDrawable and show frame by frame. There I ran into the problem of knowing which frames to show and when.
Any help will be much appreciated, thanks in advance!
Upvotes: 3
Views: 214
Reputation: 1047
I had same problem. I used SurfaceView. For example: http://obviam.net/index.php/sprite-animation-with-android/
Upvotes: 0
Reputation: 1570
I suggest use Tween Engine it is very good for animations.For android you add some additional code to animate like this.
Upvotes: 2