可能出现的bug
Closed this issue · 0 comments
Wadeqing commented
seatView.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {
@OverRide
public void onGlobalLayout() {
seatView.setSeatData(seatList);
seatView.getViewTreeObserver().removeOnGlobalLayoutListener(this);
}
});
seatView.getWidth();有可能为0,导致不绘制