How to change all the activity transitions at once in Android application?

前端 未结 5 853
日久生厌
日久生厌 2020-12-07 20:45

I know I can change activity transition using the following code right after startActivity() or finish()

activity.overridePendingTransition(R.anim.activity_clo

5条回答
  •  离开以前
    2020-12-07 20:58

    I know this has been answered but here is what I did in mine. We still support API 14 so there are some animations missing that I had to pull into the project from API 22( slide_in_right, slide_out_left). What this does is to slide in the screens when you open a new activity and slides the closing one out to the left. When you press back it will then do the opposite, sliding from the left the previous screen and closing out to the right the current screen.

    
    
    
    

提交回复
热议问题