diff --git a/library/src/main/java/com/mikepenz/materialdrawer/Drawer.java b/library/src/main/java/com/mikepenz/materialdrawer/Drawer.java
index <HASH>..<HASH> 100644
--- a/library/src/main/java/com/mikepenz/materialdrawer/Drawer.java
+++ b/library/src/main/java/com/mikepenz/materialdrawer/Drawer.java
@@ -373,6 +373,18 @@ public class Drawer {
     }
 
     /**
+     * sets the gravity for this drawer.
+     *
+     * @param gravity the gravity which is defined for the drawer
+     */
+    public void setGravity(int gravity) {
+        DrawerLayout.LayoutParams params = (DrawerLayout.LayoutParams) getSlider().getLayoutParams();
+        params.gravity = gravity;
+        getSlider().setLayoutParams(params);
+        mDrawerBuilder.mDrawerGravity = gravity;
+    }
+
+    /**
      * calculates the position of an drawerItem. searching by it's identifier
      *
      * @param drawerItem
* add new method to update the gravity of the drawer programatically
 * FIX #<I>