Animation at the beginning of activity jumps

后端 未结 2 1934
一生所求
一生所求 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.

提交回复
热议问题