How to make smooth frame animation in android?

前端 未结 2 1288
一向
一向 2021-02-10 07:48

I made a frame animation. But the transitition between images is bad looking. How can I apply a crossfade effect to it ?

When using TransitionDrawable i get

2条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-10 08:10

    By using frame animation increasing frame number can help you to get a good result. In my case the result was satisfactory on my HTC Evo.

    While using tween animation you can use linear interpolator. For rotation for example

      
      
    

    And you interpolator file content here

    
    
    

    This is for rotation, you can see full list here.

    http://developer.android.com/guide/topics/resources/animation-resource.html

    or you can read a blog post that I write how to make a loading animation.

    http://yekmer.posterous.com/how-to-make-a-loading-animator-in-android

提交回复
热议问题