AriadneThread/android-seatview

可能出现的bug

Closed this issue · 0 comments

seatView.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {
@OverRide
public void onGlobalLayout() {
seatView.setSeatData(seatList);
seatView.getViewTreeObserver().removeOnGlobalLayoutListener(this);
}
});
seatView.getWidth();有可能为0,导致不绘制