code: public void setContentView(int layoutResId) {
          switch (mDragMode) {
              case MenuDrawer.MENU_DRAG_CONTENT:
                  mContentContainer.removeAllViews();
                  LayoutInflater.from(getContext()).inflate(layoutResId, mContentContainer, true);
                  break;
  
              case MenuDrawer.MENU_DRAG_WINDOW:
                  mActivity.setContentView(layoutResId);
                  break;
          }
      }
docs: Set the content from a layout resource.
  
  @param layoutResId Resource ID to be inflated.