Animation at the beginning of activity jumps

后端 未结 2 1867
一生所求
一生所求 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:39

    It sounds like your draw loop UI thread is getting starved.

    I'd use traceview to be sure that there aren't any methods blocking your draw calls. http://tools.android.com/tips/traceview

    This should help you determine what's being invoked instead of the onDraw method.

    0 讨论(0)
  • 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); 
    
    0 讨论(0)
提交回复
热议问题