-
Notifications
You must be signed in to change notification settings - Fork 673
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
开始重影问题,按照下面的解决办法后,第一次进入程序,先是第一条数据,轮播后还是从第一条数据开始 #65
Comments
是的 还是依然会重影 |
你检查了下代码,startWithList(list)和startFlipping()是不是都调用了。我的问题就是这样的,界面显示时我调用了startFlipping()开启动画。但是在这时候我同样去请求了数据,获得数据后调用了startWithList(list),这就导致重复调用开启动画,导致了重影 |
我取了一个巧,先设置 startWithList("") 然后紧接着设置 startWithList 这样就规避了目前的重影问题 |
先把所有子view清除,然后清空动画,在停止播放就可以。 |
if (MarqueeView.getNotices().isEmpty() && !MarqueeView.getNotices().equals(oldList)) { 问题原因
|
MarqueeView.getNotices().isEmpty() 是不等于空的意思吗 |
重影一种重现方式,mvAnimDuration和mvInterval 设置成一样的值 |
如果不加入 @OverRide
public void onStart() {
super.onStart();
L.i("onStart =======");
mMarqueeView.startFlipping();
}
这个代码是没有问题,但是会重影
The text was updated successfully, but these errors were encountered: