Android共享元素过渡

标签 android objectanimator

我想用脉冲动画实现共享元素事务。 当您单击 Activity1 红色按钮时,它必须用来自 redButton 位置的脉冲动画填充整个空间。 屏幕填满后,activity2 会显示其他 UI,例如按钮或编辑文本。

我尝试使用 ObjectAnimator,但我不明白哪种方法更好。

enter image description here

最佳答案

我认为你应该使用场景转换更好

这是来自google的示例演示,请看一下: https://github.com/googlesamples/android-ActivitySceneTransitionBasic

关于Android共享元素过渡,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37167377/

相关文章:

android - ValueAnimator内存问题

android - 如何在 AnimatorSet playSequentially() 中的动画之间添加延迟?

java - 使用对象动画制作器对按钮进行动画处理

java - 为 Kotlin 创建 POJO 类

android - 使用 CyanogenMod 的设备树构建 AOSP 是否正确?

android - 在 vuforia 增强现实应用程序中运行时选择 3d 模型

android - Webview 在每次调用时保留旧的 Url

android - 使用新的 API 21 获取相机预览

android - 使用 ObjectAnimator 淡出并翻译 VectorDrawable

android - PropertyValuesHolder : Couldn't find setter/getter for property <property-name> with value type float