setAnimation vs startAnimation in android

前端 未结 2 830
名媛妹妹
名媛妹妹 2020-12-20 12:06

I basically want to move a view from 1 location to another, plus I also want to increase its height gradually, So what should I use setAnimation or startAnimation.



        
2条回答
  •  星月不相逢
    2020-12-20 12:38

    This is my understanding.

    SetAnimation

    when the view is added to the viewGroup,animation will be called.when the view has been added,the animation will not be called

    StartAnimation

    animation will be called all the time even though the view has been added.

提交回复
热议问题