public void removeLeftItem(int id){
  MenuItem item=getItemById(id);
  items.remove(id);
  leftItems.remove(item);
  containerLeft.removeAllViews();
  for (  MenuItem menuItem : leftItems)   containerLeft.addView(menuItem);
  configureLeftAnimations();
}

public void removeLeftItem ( int id ) { MenuItem item = getItemById ( id ) ; items . remove ( id ) ; leftItems . remove ( item ) ; containerLeft . removeAllViews ( ) ; for ( MenuItem menuItem : leftItems ) containerLeft . addView ( menuItem ) ; configureLeftAnimations ( ) ; }
remove a top menuitem by id
