Animating all items in Animation-list

后端 未结 1 1881
轻奢々
轻奢々 2021-01-25 00:26

I have a list of images(around 10) in my \"image_list.xml\" under \"animation-list\" specified with \"item\". And I have made one \"fade_in.xml\" file for fade in effect of the

相关标签:
1条回答
  • 2021-01-25 00:42

    Add enter and exit fade duration before start AnimationDrawable

    AnimationDrawable splashAnimation = ((AnimationDrawable) iv.getBackground());
    
    splashAnimation .setEnterFadeDuration(500);
    splashAnimation .setExitFadeDuration(500);
    
    animDrawable.start();
    

    It Works for me.

    Happy Coding

    0 讨论(0)
提交回复
热议问题