我正在尝试从https://github.com/bluelinelabs/Conductor库中了解演示示例。
运动看起来像这样
这是代码,负责动画
public class ArcFadeMoveChangeHandler extends TransitionChangeHandler {
public ArcFadeMoveChangeHandler() { }
@Override
@NonNull
protected Transition getTransition(@NonNull ViewGroup container, View from, View to, boolean isPush) {
TransitionSet transition = new TransitionSet()
.setOrdering(TransitionSet.ORDERING_SEQUENTIAL)
.addTransition(new Fade(Fade.OUT))
.addTransition(new TransitionSet().addTransition(new ChangeBounds()).addTransition(new ChangeClipBounds()).addTransition(new ChangeTransform()))
.addTransition(new Fade(Fade.IN));
transition.setPathMotion(new ArcMotion());
return transition;
}
}
它怎么知道应该为 FAB 执行该动作?如何为 FAB 执行弧形运动,但将屏幕上的所有其余元素设置为 FadeOut?