弹幕的显示隐藏具体是怎么控制的呢。是setVisibility 吗?
Opened this issue · 4 comments
githeer commented
弹幕的显示隐藏具体是怎么控制的呢。是setVisibility 吗?
hust201010701 commented
不是,是通过addView和removeView实现的,具体代码可以看
DanmuContainerView.java
lihuanming commented
有demo吗??具体怎么控制呢?
hust201010701 commented
@lihuanming 目前不支持弹幕移除。添加弹幕的方式:
DanmuEntity danmuEntity = new DanmuEntity();
danmuEntity.setContent(SEED[random.nextInt(5)]);
danmuEntity.setType(0);
danmuEntity.setTime("23:20:11");
danmuContainerView.addDanmu(danmuEntity);
lihuanming commented
@hust201010701 那怎么隐藏呢??