Skip to content
New issue

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

stopAction 没有停止动画事件 #2

Open
adongs opened this issue Aug 11, 2023 · 3 comments
Open

stopAction 没有停止动画事件 #2

adongs opened this issue Aug 11, 2023 · 3 comments

Comments

@adongs
Copy link

adongs commented Aug 11, 2023

使用 View.stopAction() 停止动画没有没有回调,也没有办法判断一个View 是否存在动画

@shijiannihao
Copy link
Collaborator

shijiannihao commented Aug 11, 2023 via email

@wufuqi123
Copy link
Owner

检测是否执行完成
runView.runAction(Action.sequence(Action.fadeIn(time), Action.callFunc {
Log.i(this::class.java.name, "fadeIn 执行完成")
}))

检测动画是否正在运行
tween.isRunning

//只检测单个控件
view.isRunningAction()
//检测整个界面
activity.isRunningAction()

@shijiannihao
Copy link
Collaborator

shijiannihao commented Dec 13, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants