We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
问题描述/重现步骤请写在这里 Please write the description here.
似乎 TranslationConfig 没有处理 buildAnimator 和 buildAnimation 的 isRevert 参数,以至于我没办法简单复用 AnimationHelper 来创建显示和隐藏动画, 例如我要用以下代码设置动画:
buildAnimator
buildAnimation
isRevert
val animation = AnimationHelper.asAnimation() .withAlpha(AlphaConfig().from(0).to(1)) .withScale(ScaleConfig().scale(0f, 1f)) .withTranslation(TranslationConfig().from(Direction.BOTTOM).to(Direction.TOP)) popup.setShowAnimator(animation.toShow()) popup.setDismissAnimation(animation.toDismiss()) popup.showPopupWindow(anchor)
这样设置以后,Alpha 和 Scale 可以按照预期在显示和隐藏时反转动画,而 Translation 动画一直都是自下而上。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
似乎 TranslationConfig 没有处理
buildAnimator
和buildAnimation
的isRevert
参数,以至于我没办法简单复用 AnimationHelper 来创建显示和隐藏动画, 例如我要用以下代码设置动画:这样设置以后,Alpha 和 Scale 可以按照预期在显示和隐藏时反转动画,而 Translation 动画一直都是自下而上。
The text was updated successfully, but these errors were encountered: