code: public SwipeBack setContentView(View view, LayoutParams params) {
  		switch (mDragMode) {
  		case SwipeBack.DRAG_CONTENT:
  			mContentContainer.removeAllViews();
  			mContentContainer.addView(view, params);
  			break;
  
  		case SwipeBack.DRAG_WINDOW:
  
  			// mActivity can be null if inflated from xml, so retrieve activity
  			// if (mActivity == null) {
  			// mActivity = (Activity) getContext();
  			// }
  
  			mActivity.setContentView(view, params);
  			break;
  		}
  
  		return this;
  	}
docs: Set the content to an explicit view.
  
  @param view   The desired content to display.
  @param params Layout parameters for the view.