Set animation listener to Activity animations

后端 未结 4 452
清歌不尽
清歌不尽 2020-12-16 11:42

I am using overridePendingTransition method to perform custom Activity animations.

I would like to know when the animation ends ( a callback/listener )

4条回答
  •  忘掉有多难
    2020-12-16 12:26

    After unsuccessfully browsing Google for this question, I've found a solution by going through all override-methods.

    So what I did, was overriding this method in the activity that is entering the screen:

    Requires API level 21

    @Override
    public void onEnterAnimationComplete() {
            super.onEnterAnimationComplete();
    }
    

提交回复
热议问题