Comments (6)
不好意思,现在才看到,是频繁添加数据才会出现吗?
from muti-barrage.
你好,没有频繁添加数据,在初始化的时候直接for循环去添加的,后面没变
from muti-barrage.
感谢提出,我等会儿测试测试。
from muti-barrage.
嗯嗯,如果需要更多的代码我再贴出来,感谢大佬解惑
from muti-barrage.
我猜你应该把数据初始化放入了Activity
的onCreate()
到onResume
之间,这个时候父布局的View可能还没有执行绘制过程(View的绘制过程需要时间),目前的做法是将数据初始化放在onWindowFocusChanged(boolean hasFocus)
方法中,我的Demo中也是这么做的
from muti-barrage.
嗯嗯好的,谢谢,我去试试
from muti-barrage.
Related Issues (15)
- 如果每条弹幕长度不一样 会出现重叠问题 HOT 3
- barrageView.destroy()执行之后,BarrageView中getSpeed方法中Log仍在打印 HOT 2
- minSdk 21 是不是太高了,现在很多App都还是17甚至14,建议优化一下 HOT 1
- 作者您好,请问有计划增加行数控制吗?
- 在进行内存分析时,发现点问题。 HOT 1
- emmm怎么添加弹幕……………… HOT 1
- 如果把控件放入adapter中的itemView,就无法实现动态控制 HOT 2
- 如果内容稍长,显示会出现问题 HOT 2
- 弹幕文本内容超过屏幕宽度就会换行显示,弹幕只显示单行显示不全
- #1102 java.util.concurrent.RejectedExecutionException
- 添加到添到弹幕中有点卡!
- 能添加点击某条弹幕后单独设置弹幕速度的功能吗?或者有什么思路
- barrageView.destroy()后想重新加载数据怎么办
- 碰撞检测还有问题能解决吗
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from muti-barrage.