gt: 		else if (widthBehind != -1)
context: package com.jeremyfeinstein.slidingmenu.lib;
  
  import com.matchcalendar.R;
  import java.lang.reflect.Method;
  
  import android.annotation.SuppressLint;
  import android.annotation.TargetApi;
  import android.app.Activity;
  import android.content.Context;
  import android.content.res.TypedArray;
  import android.graphics.Bitmap;
  import android.graphics.BitmapFactory;
  import android.graphics.Canvas;
  import android.graphics.Point;
  import android.graphics.Rect;
  import android.graphics.drawable.Drawable;
  import android.os.Build;
  import android.os.Handler;
  import android.os.Parcel;
  import android.os.Parcelable;
  import android.util.AttributeSet;
  import android.util.Log;
  import android.view.Display;
  import android.view.LayoutInflater;
  import android.view.View;
  import android.view.ViewGroup;
  import android.view.WindowManager;
  import android.widget.FrameLayout;
  import android.widget.RelativeLayout;
  
  import com.jeremyfeinstein.slidingmenu.lib.CustomViewAbove.OnPageChangeListener;
  
  public class SlidingMenu extends RelativeLayout {
  
  	private static final String TAG = "SlidingMenu";
  
  	public static final int SLIDING_WINDOW = 0;
  	public static final int SLIDING_CONTENT = 1;
  	private boolean mActionbarOverlay = false;
  
  	/** Constant value for use with setTouchModeAbove(). Allows the SlidingMenu to be opened with a swipe
  	 * gesture on the screen's margin
  	 */
  	public static final int TOUCHMODE_MARGIN = 0;
  
  	/** Constant value for use with setTouchModeAbove(). Allows the SlidingMenu to be opened with a swipe
  	 * gesture anywhere on the screen
  	 */
  	public static final int TOUCHMODE_FULLSCREEN = 1;
  
  	/** Constant value for use with setTouchModeAbove(). Denies the SlidingMenu to be opened with a swipe
  	 * gesture
  	 */
  	public static final int TOUCHMODE_NONE = 2;
  
  	/** Constant value for use with setMode(). Puts the menu to the left of the content.
  	 */
  	public static final int LEFT = 0;
  
  	/** Constant value for use with setMode(). Puts the menu to the right of the content.
  	 */
  	public static final int RIGHT = 1;
  
  	/** Constant value for use with setMode(). Puts menus to the left and right of the content.
  	 */
  	public static final int LEFT_RIGHT = 2;
  
  	private CustomViewAbove mViewAbove;
  
  	private CustomViewBehind mViewBehind;
  
  	private OnOpenListener mOpenListener;
  
  	private OnCloseListener mCloseListener;
  
  	/**
  	 * The listener interface for receiving onOpen events.
  	 * The class that is interested in processing a onOpen
  	 * event implements this interface, and the object created
  	 * with that class is registered with a component using the
  	 * component's <code>addOnOpenListener<code> method. When
  	 * the onOpen event occurs, that object's appropriate
  	 * method is invoked
  	 */
  	public interface OnOpenListener {
  
  		/**
  		 * On open.
  		 */
  		public void onOpen();
  	}
  
  	/**
  	 * The listener interface for receiving onOpened events.
  	 * The class that is interested in processing a onOpened
  	 * event implements this interface, and the object created
  	 * with that class is registered with a component using the
  	 * component's <code>addOnOpenedListener<code> method. When
  	 * the onOpened event occurs, that object's appropriate
  	 * method is invoked.
  	 *
  	 * @see OnOpenedEvent
  	 */
  	public interface OnOpenedListener {
  
  		/**
  		 * On opened.
  		 */
  		public void onOpened();
  	}
  
  	/**
  	 * The listener interface for receiving onClose events.
  	 * The class that is interested in processing a onClose
  	 * event implements this interface, and the object created
  	 * with that class is registered with a component using the
  	 * component's <code>addOnCloseListener<code> method. When
  	 * the onClose event occurs, that object's appropriate
  	 * method is invoked.
  	 *
  	 * @see OnCloseEvent
  	 */
  	public interface OnCloseListener {
  
  		/**
  		 * On close.
  		 */
  		public void onClose();
  	}
  
  	/**
  	 * The listener interface for receiving onClosed events.
  	 * The class that is interested in processing a onClosed
  	 * event implements this interface, and the object created
  	 * with that class is registered with a component using the
  	 * component's <code>addOnClosedListener<code> method. When
  	 * the onClosed event occurs, that object's appropriate
  	 * method is invoked.
  	 *
  	 * @see OnClosedEvent
  	 */
  	public interface OnClosedListener {
  
  		/**
  		 * On closed.
  		 */
  		public void onClosed();
  	}
  
  	/**
  	 * The Interface CanvasTransformer.
  	 */
  	public interface CanvasTransformer {
  
  		/**
  		 * Transform canvas.
  		 *
  		 * @param canvas the canvas
  		 * @param percentOpen the percent open
  		 */
  		public void transformCanvas(Canvas canvas, float percentOpen);
  	}
  
  	/**
  	 * Instantiates a new SlidingMenu.
  	 *
  	 * @param context the associated Context
  	 */
  	public SlidingMenu(Context context) {
  		this(context, null);
  	}
  
  	/**
  	 * Instantiates a new SlidingMenu and attach to Activity.
  	 *
  	 * @param activity the activity to attach slidingmenu
  	 * @param slideStyle the slidingmenu style
  	 */
  	public SlidingMenu(Activity activity, int slideStyle) {
  		this(activity, null);
  		this.attachToActivity(activity, slideStyle);
  	}
  
  	/**
  	 * Instantiates a new SlidingMenu.
  	 *
  	 * @param context the associated Context
  	 * @param attrs the attrs
  	 */
  	public SlidingMenu(Context context, AttributeSet attrs) {
  		this(context, attrs, 0);
  	}
  
  	/**
  	 * Instantiates a new SlidingMenu.
  	 *
  	 * @param context the associated Context
  	 * @param attrs the attrs
  	 * @param defStyle the def style
  	 */
  	public SlidingMenu(Context context, AttributeSet attrs, int defStyle) {
  		super(context, attrs, defStyle);
  		
  		LayoutParams behindParams = new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);
  		mViewBehind = new CustomViewBehind(context);
  		addView(mViewBehind, behindParams);
  		LayoutParams aboveParams = new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);
  		mViewAbove = new CustomViewAbove(context);
  		addView(mViewAbove, aboveParams);
  		// register the CustomViewBehind with the CustomViewAbove
  		mViewAbove.setCustomViewBehind(mViewBehind);
  		mViewBehind.setCustomViewAbove(mViewAbove);
  		mViewAbove.setOnPageChangeListener(new OnPageChangeListener() {
  			public static final int POSITION_OPEN = 0;
  			public static final int POSITION_CLOSE = 1;
  
  			public void onPageScrolled(int position, float positionOffset,
  					int positionOffsetPixels) { }
  
  			public void onPageSelected(int position) {
  				if (position == POSITION_OPEN && mOpenListener != null) {
  					mOpenListener.onOpen();
  				} else if (position == POSITION_CLOSE && mCloseListener != null) {
  					mCloseListener.onClose();
  				}
  			}
  		});
  
  		// now style everything!
  		TypedArray ta = context.obtainStyledAttributes(attrs, R.styleable.SlidingMenu);
  		// set the above and behind views if defined in xml
  		int mode = ta.getInt(R.styleable.SlidingMenu_mode, LEFT);
  		setMode(mode);
  		int viewAbove = ta.getResourceId(R.styleable.SlidingMenu_viewAbove, -1);
  		if (viewAbove != -1) {
  			setContent(viewAbove);
  		} else {
  			setContent(new FrameLayout(context));
  		}
  		int viewBehind = ta.getResourceId(R.styleable.SlidingMenu_viewBehind, -1);
  		if (viewBehind != -1) {
  			setMenu(viewBehind); 
  		} else {
  			setMenu(new FrameLayout(context));
  		}
  		int touchModeAbove = ta.getInt(R.styleable.SlidingMenu_touchModeAbove, TOUCHMODE_MARGIN);
  		setTouchModeAbove(touchModeAbove);
  		int touchModeBehind = ta.getInt(R.styleable.SlidingMenu_touchModeBehind, TOUCHMODE_MARGIN);
  		setTouchModeBehind(touchModeBehind);
  
  		int offsetBehind = (int) ta.getDimension(R.styleable.SlidingMenu_behindOffset, -1);
  		int widthBehind = (int) ta.getDimension(R.styleable.SlidingMenu_behindWidth, -1);
  		if (offsetBehind != -1 && widthBehind != -1)
  			throw new IllegalStateException("Cannot set both behindOffset and behindWidth for a SlidingMenu");
  		else if (offsetBehind != -1)
  			setBehindOffset(offsetBehind);
  