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

重影问题能解决嘛 #87

Open
15901316237 opened this issue Jul 11, 2019 · 4 comments
Open

重影问题能解决嘛 #87

15901316237 opened this issue Jul 11, 2019 · 4 comments

Comments

@15901316237
Copy link

No description provided.

@starktonys
Copy link

starktonys commented Sep 12, 2019

if (MarqueeView.getNotices().isEmpty() && !MarqueeView.getNotices().equals(oldList)) {
//避免重复set 重影问题 不等于空 并且 不等于老的数据就替换
tvAutoOfficeAnnounceHeader.startWithList(mSystemMessages);
}
确实是这个问题导致的,终极解决方案。

#65

@ousq
Copy link

ousq commented Jan 7, 2020

if (MarqueeView.getNotices().isEmpty() && !MarqueeView.getNotices().equals(oldList)) {
//避免重复set 重影问题 不等于空 并且 不等于老的数据就替换
tvAutoOfficeAnnounceHeader.startWithList(mSystemMessages);
}
确实是这个问题导致的,终极解决方案。

#65

具体怎么操作的

按照这种思路解决了

@903531306
Copy link

时隔一年这是作业在没有更新了吗 重影的有解决吗

@liuxuwei
Copy link

最近用到MarqueeView, 的确也出现了重影的问题。
出现原因个人猜测:
inAnim和outAnim的动画时间一致时 导致有时候两个动画的先后顺序不一致。(可以通过getOutAnimation.setAnimationListener() 打印日志进行对比。)

个人解决办法:
setInAndOutAnimation()方法中,
修改为:
outAnim.setDuration(animDuration - 500)
使outAnim 和 inAnim有一个时间差, 测试了大概半小时,表现正常。

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

5 participants