Animation at the beginning of activity jumps

后端 未结 2 1866
一生所求
一生所求 2021-02-14 13:58

I am working on animating custom Views for my Android app. I have accomplished this via Property Animations and calling invalidate() on the View in the onAnim

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-14 14:41

    Since there are no codes attached, I'm assuming you have some transition animation to the activity. If this is the case, it might cause the problem.Since there are two animations running simultaneously. Disable the transition and give it try.

    startActivity(intent);
    getActivity().overridePendingTransition(0, 0); 
    

提交回复
热议问题