code: public void setMenuView(View view, LayoutParams params) {
          mMenuView = view;
          mMenuContainer.removeAllViews();
          mMenuContainer.addView(view, params);
      }
docs: Set the menu view to an explicit view.
  
  @param view   The menu view.
  @param params Layout parameters for the view.