code: protected void addItemView(View itemView, int childIndex) {
          final ViewGroup currentParent = (ViewGroup) itemView.getParent();
          if (currentParent != null) {
              currentParent.removeView(itemView);
          }
          ((ViewGroup) mMenuView).addView(itemView, childIndex);
      }
docs: Add an item view at the given index.
  
  @param itemView View to add
  @param childIndex Index within the parent to insert at