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

动画变得非常快 #15

Open
zjx19930911 opened this issue Oct 14, 2016 · 3 comments
Open

动画变得非常快 #15

zjx19930911 opened this issue Oct 14, 2016 · 3 comments

Comments

@zjx19930911
Copy link

一开始为可见,过一段时间为不可见setVisibility(GONE),然后再设置可见的话,动画会变得非常块。

@wei3
Copy link

wei3 commented Mar 7, 2017

试下,多加一个判断条件
private void startLoading(long delay) {
if (mDownAnimatorSet != null && mDownAnimatorSet.isRunning() || mUpAnimatorSet !=null && mUpAnimatorSet.isRunning()) {
return;
}}

@huzhaoforwork
Copy link

我也遇到了,一开始为可见正常动画,过一段时间为不可见setVisibility(GONE),然后再设置可见的话,动画会变得非常块

@LCiZY
Copy link

LCiZY commented Jan 8, 2021

上层加一个布局,然后调用上层的setVisibility就不会出现这个问题了

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

4 participants