@@ -44,35 +44,35 @@ public long getDuration() {
         }
     }
 
-	public static enum SnackbarPosition {
-		TOP(Gravity.TOP), BOTTOM(Gravity.BOTTOM);
+    public static enum SnackbarPosition {
+        TOP(Gravity.TOP), BOTTOM(Gravity.BOTTOM);
 
-		private int layoutGravity;
+        private int layoutGravity;
 
-		SnackbarPosition ( int layoutGravity ) {
-			this.layoutGravity = layoutGravity;
-		}
+        SnackbarPosition ( int layoutGravity ) {
+            this.layoutGravity = layoutGravity;
+        }
 
-		public int getLayoutGravity () {
-			return layoutGravity;
-		}
-	}
+        public int getLayoutGravity () {
+            return layoutGravity;
+        }
+    }
 
     private int mUndefinedColor = -10000;
-	private int mUndefinedDrawable = -10000;
+    private int mUndefinedDrawable = -10000;
 
     private SnackbarType mType = SnackbarType.SINGLE_LINE;
     private SnackbarDuration mDuration = SnackbarDuration.LENGTH_LONG;
     private CharSequence mText;
     private int mColor = mUndefinedColor;
     private int mTextColor = mUndefinedColor;
     private int mOffset;
-	private SnackbarPosition mPosition = SnackbarPosition.BOTTOM;
-	private int mDrawable = mUndefinedDrawable;
-	private int mMarginTop = 0;
-	private int mMarginBottom = 0;
-	private int mMarginLeft = 0;
-	private int mMarginRight = 0;
+    private SnackbarPosition mPosition = SnackbarPosition.BOTTOM;
+    private int mDrawable = mUndefinedDrawable;
+    private int mMarginTop = 0;
+    private int mMarginBottom = 0;
+    private int mMarginLeft = 0;
+    private int mMarginRight = 0;
     private long mSnackbarStart;
     private long mSnackbarFinish;
     private long mTimeRemaining = -1;
@@ -177,16 +177,16 @@ public Snackbar colorResource(@ColorRes int resId) {
         return color(getResources().getColor(resId));
     }
 
-	/**
-	 * Sets the background drawable of this {@link Snackbar}
-	 *
-	 * @param resId
-	 * @return
-	 */
-	public Snackbar backgroundDrawable(@DrawableRes int resId) {
-		mDrawable = resId;
-		return this;
-	}
+    /**
+     * Sets the background drawable of this {@link Snackbar}
+     *
+     * @param resId
+     * @return
+     */
+    public Snackbar backgroundDrawable(@DrawableRes int resId) {
+        mDrawable = resId;
+        return this;
+    }
 
     /**
      * Sets the text color of this {@link Snackbar}
@@ -232,56 +232,56 @@ public Snackbar actionLabel(@StringRes int resId) {
         return actionLabel(getContext().getString(resId));
     }
 
-	/**
-	 * Set the position of the {@link Snackbar}. Note that if this is not set, the default is to
-	 * show the snackbar to the bottom of the screen.
-	 *
-	 * @param position
-	 * @return
-	 */
-	public Snackbar position(SnackbarPosition position) {
-		mPosition = position;
-		return this;
-	}
-
-	/**
-	 * Sets all the margins of the {@link Snackbar} to the same value, in pixels
-	 *
-	 * @param margin
-	 * @return
-	 */
-	public Snackbar margin(int margin) {
-		return margin(margin, margin, margin, margin);
-	}
-
-	/**
-	 * Sets the margins of the {@link Snackbar} in pixels such that the left and right are equal, and the top and bottom are equal
-	 *
-	 * @param marginLR
-	 * @param marginTB
-	 * @return
-	 */
-	public Snackbar margin(int marginLR, int marginTB) {
-		return margin(marginLR, marginTB, marginLR, marginTB);
-	}
-
-	/**
-	 * Sets all the margin of the {@link Snackbar} individually, in pixels
-	 *
-	 * @param marginLeft
-	 * @param marginTop
-	 * @param marginRight
-	 * @param marginBottom
-	 * @return
-	 */
-	public Snackbar margin(int marginLeft, int marginTop, int marginRight, int marginBottom) {
-		mMarginLeft = marginLeft;
-		mMarginTop = marginTop;
-		mMarginBottom = marginBottom;
-		mMarginRight = marginRight;
-
-		return this;
-	}
+    /**
+     * Set the position of the {@link Snackbar}. Note that if this is not set, the default is to
+     * show the snackbar to the bottom of the screen.
+     *
+     * @param position
+     * @return
+     */
+    public Snackbar position(SnackbarPosition position) {
+        mPosition = position;
+        return this;
+    }
+
+    /**
+     * Sets all the margins of the {@link Snackbar} to the same value, in pixels
+     *
+     * @param margin
+     * @return
+     */
+    public Snackbar margin(int margin) {
+        return margin(margin, margin, margin, margin);
+    }
+
+    /**
+     * Sets the margins of the {@link Snackbar} in pixels such that the left and right are equal, and the top and bottom are equal
+     *
+     * @param marginLR
+     * @param marginTB
+     * @return
+     */
+    public Snackbar margin(int marginLR, int marginTB) {
+        return margin(marginLR, marginTB, marginLR, marginTB);
+    }
+
+    /**
+     * Sets all the margin of the {@link Snackbar} individually, in pixels
+     *
+     * @param marginLeft
+     * @param marginTop
+     * @param marginRight
+     * @param marginBottom
+     * @return
+     */
+    public Snackbar margin(int marginLeft, int marginTop, int marginRight, int marginBottom) {
+        mMarginLeft = marginLeft;
+        mMarginTop = marginTop;
+        mMarginBottom = marginBottom;
+        mMarginRight = marginRight;
+
+        return this;
+    }
 
     /**
      * Sets the color of the action button label. Note that you must set a button label with
@@ -472,16 +472,16 @@ private static MarginLayoutParams createMarginLayoutParams(ViewGroup viewGroup,
         } else if (viewGroup instanceof RelativeLayout) {
             RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(width, height);
 
-	        if (position == SnackbarPosition.TOP)
-		        params.addRule(RelativeLayout.ALIGN_PARENT_TOP, RelativeLayout.TRUE);
-	        else
-		        params.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM, RelativeLayout.TRUE);
+            if (position == SnackbarPosition.TOP)
+                params.addRule(RelativeLayout.ALIGN_PARENT_TOP, RelativeLayout.TRUE);
+            else
+                params.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM, RelativeLayout.TRUE);
 
             return params;
         } else if (viewGroup instanceof LinearLayout) {
-	        LinearLayout.LayoutParams params = new LayoutParams(width, height);
-	        params.gravity = position.getLayoutGravity();
-	        return params;
+            LinearLayout.LayoutParams params = new LayoutParams(width, height);
+            params.gravity = position.getLayoutGravity();
+            return params;
         } else {
             throw new IllegalStateException("Requires FrameLayout or RelativeLayout for the parent of Snackbar");
         }
@@ -526,8 +526,8 @@ private MarginLayoutParams init(Context context, Activity targetActivity, ViewGr
                     parent, FrameLayout.LayoutParams.WRAP_CONTENT, dpToPx(mType.getMaxHeight(), scale), mPosition);
         }
 
-	    if (mDrawable != mUndefinedDrawable)
-		    setBackgroundDrawable(layout, res.getDrawable(mDrawable));
+        if (mDrawable != mUndefinedDrawable)
+            setBackgroundDrawable(layout, res.getDrawable(mDrawable));
 
         TextView snackbarText = (TextView) layout.findViewById(R.id.sb__text);
         snackbarText.setText(mText);
@@ -930,16 +930,16 @@ protected void refreshLayoutParamsMargins() {
     protected void updateLayoutParamsMargins(Activity targetActivity, MarginLayoutParams params) {
         if (mUsePhoneLayout) {
             // Phone
-	        params.topMargin = mMarginTop;
-	        params.rightMargin = mMarginRight;
-	        params.leftMargin = mMarginLeft;
-	        params.bottomMargin = mMarginBottom;
+            params.topMargin = mMarginTop;
+            params.rightMargin = mMarginRight;
+            params.leftMargin = mMarginLeft;
+            params.bottomMargin = mMarginBottom;
         } else {
             // Tablet/desktop
-	        params.topMargin = mMarginTop;
-	        params.rightMargin = mMarginRight;
-	        params.leftMargin = mMarginLeft + mOffset;
-	        params.bottomMargin = mMarginBottom + mOffset;
+            params.topMargin = mMarginTop;
+            params.rightMargin = mMarginRight;
+            params.leftMargin = mMarginLeft + mOffset;
+            params.bottomMargin = mMarginBottom + mOffset;
         }
 
         // Add bottom/right margin when navigation bar is hidden or translucent
@@ -1047,17 +1047,17 @@ public static int getOutAnimationResource(SnackbarPosition snackbarPosition) {
         return snackbarPosition == SnackbarPosition.TOP ? R.anim.sb__top_out : R.anim.sb__bottom_out;
     }
 
-	/**
-	 * Set a Background Drawable using the appropriate Android version api call
-	 *
-	 * @param view
-	 * @param drawable
-	 */
-	public static void setBackgroundDrawable(View view, Drawable drawable) {
-		if (android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.JELLY_BEAN) {
-			view.setBackgroundDrawable(drawable);
-		} else {
-			view.setBackground(drawable);
-		}
-	}
+    /**
+     * Set a Background Drawable using the appropriate Android version api call
+     *
+     * @param view
+     * @param drawable
+     */
+    public static void setBackgroundDrawable(View view, Drawable drawable) {
+        if (android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.JELLY_BEAN) {
+            view.setBackgroundDrawable(drawable);
+        } else {
+            view.setBackground(drawable);
+        }
+    }
 }