enterAnim& amp;和有什么区别? popEnterAnim& exitAnim& popExitAnim? [英] What is the difference between enterAnim & popEnterAnim & exitAnim & popExitAnim?

查看:860
本文介绍了enterAnim& amp;和有什么区别? popEnterAnim& exitAnim& popExitAnim?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最新的Navigation Architecture Component中的动画标签之间有什么区别?我对enterAnim& popEnterAnim.同样,exitAnim& popExitAnim.

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

任何视觉扩展都受到欢迎.

Any visual expansions is more than welcomed.

推荐答案

动画目的地文档之间的过渡详细介绍了四种动画:

The Animate transitions between destinations documentation details the four types of animations:

  • 输入目的地
  • 离开目的地
  • 通过弹出动作
  • 通过弹出动作退出目的地
  • Entering a destination
  • Exiting a destination
  • Entering a destination via a pop action
  • Exiting a destination via a pop action

正在进入"是指到达屏幕的目的地,而正在离开"是指离开屏幕的目的地.

"Entering" refers to the destination that is coming onto the screen, while "exiting" refers to the destination leaving the screen.

因此,当您从目的地A导航至目的地B时,输入的目的地B将应用enterAnim,而退出的目的地A将应用exitAnim.

Therefore when you navigate from destination A to destination B, the entering destination B will have the enterAnim applied to it and the exiting destination A will have the exitAnim applied to it.

当用户点击系统的后退"按钮,从B 后退转到A时,情况发生相反:输入目标A将应用popEnterAnim,退出目标B将应用popExitAnim.

When the user hits the system Back button, going from B back to A, the reverse happens: the entering destination A will have the popEnterAnim applied to it and the exiting destination B will have the popExitAnim applied to it.

这篇关于enterAnim& amp;和有什么区别? popEnterAnim& exitAnim& popExitAnim?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆