public boolean removeAll() { tabs.clear(); itemBar.removeAllViews(); adapter.removeAll(); if (selector != null) { selector.removeAll(); } onGlobalLayout(); return true; }