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

list滑动之后,倒计时有短暂间隔 #5

Open
lucf1103 opened this issue Jun 23, 2018 · 3 comments
Open

list滑动之后,倒计时有短暂间隔 #5

lucf1103 opened this issue Jun 23, 2018 · 3 comments

Comments

@lucf1103
Copy link

下载demo主要是想看这个问题,我自己的项目里,listView的item中,有倒计时的控件,在列表滑动之后,2个倒计时不同步,会有短暂间隔,看着很不舒服。发现 demo中也一样存在的,估计是view绘制的时间差,不知道有没有比较好的解决方式。
我是第100个 Star~~~

@sfyc23
Copy link
Owner

sfyc23 commented Jun 23, 2018

这个代码有好长时间没有上来看了,我有时间再好好重新再看一篇,谢谢你的支持。

@jzm369
Copy link

jzm369 commented Nov 14, 2019

@lucf1103 @sfyc23我也遇到这个问题。。要怎么优化

@lucf1103
Copy link
Author

@lucf1103 @sfyc23我也遇到这个问题。。要怎么优化

我当时的做法是每一个holder中都有自己的CountDownTimer

if (countDownTimer != null) {//删旧的
countDownTimer.cancel();
}

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