public void destroyObject(txUIObject obj, bool immediately = false) { obj.setDestroyImmediately(immediately); txUIObject.destroyWindow(obj, true); // 通知布局有窗口添加 mLayout.notifyObjectChanged(); }