What is the difference between enterAnim & popEnterAnim & exitAnim & popExitAnim?

前端 未结 2 646
生来不讨喜
生来不讨喜 2021-01-01 09:21

What is the difference between animation tags in latest Navigation Architecture Component? I got confused with enterAnim & popEnterAnim. Simila

2条回答
  •  一个人的身影
    2021-01-01 10:15

    Pop is related to the back stack, I use back stack for helping understanding

    e.g.

    A is showing on screen now, we are going to put B on screen, then A will Exit(Anim/transaction) from screen, B will Enter to screen.

    Now what’s going to happen if you tap back key/up button? Yes, the reverse happens. Which means B is going to be replaced by A.

    • B is popped off the back stack and Exit from screen (Pop Exit)
    • A is entered to the view from the back stack (Pop Enter)

提交回复
热议问题