public void removeTopItem(int id){
  MenuItem item=getItemById(id);
  items.remove(id);
  topItems.remove(item);
  containerTop.removeAllViews();
  for (  MenuItem menuItem : topItems)   containerTop.addView(menuItem);
  configureTopAnimations();
}

public void removeTopItem ( int id ) { MenuItem item = getItemById ( id ) ; items . remove ( id ) ; topItems . remove ( item ) ; containerTop . removeAllViews ( ) ; for ( MenuItem menuItem : topItems ) containerTop . addView ( menuItem ) ; configureTopAnimations ( ) ; }
remove a top menuitem by id
