定义自定义布局,然后调用add没有任何反应
RmondJone opened this issue · 1 comments
RmondJone commented
是真的难用,我都不知道怎么加自定义视图,算了还是换其他的吧
RmondJone commented
private void ensureFloatingView() {
synchronized(this) {
if (this.mEnFloatingView == null) {
EnFloatingView enFloatingView = new EnFloatingView(EnContext.get(), this.mLayoutId);
this.mEnFloatingView = enFloatingView;
enFloatingView.setLayoutParams(this.mLayoutParams);
enFloatingView.setIconImage(this.mIconRes);
this.addViewToWindow(enFloatingView);
}
}
}
public FloatingView add() {
this.ensureFloatingView();
return this;
}
这边的逻辑我都看笑了,走add方法,如果我设置了自定义布局等于啥也不干呗就是这个意思?