code: protected void setLeftMargin(View view, int leftMargin) {
          SlidingPaneLayout.LayoutParams lp = (SlidingPaneLayout.LayoutParams) view.getLayoutParams();
          lp.leftMargin = leftMargin;
          lp.rightMargin = 0;
  
          if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) {
              lp.setMarginStart(leftMargin);
              lp.setMarginEnd(0);
          }
          view.setLayoutParams(lp);
      }
docs: define the left margin of the given view
  
  @param view
  @param leftMargin