|
@@ -57,6 +57,7 @@ public class SideMenu extends DrawerLayout {
|
57
|
57
|
super(context);
|
58
|
58
|
createContentContainer();
|
59
|
59
|
createSideMenu(sideMenuParams);
|
|
60
|
+ setStyle(sideMenuParams);
|
60
|
61
|
}
|
61
|
62
|
|
62
|
63
|
private void createContentContainer() {
|
|
@@ -72,4 +73,10 @@ public class SideMenu extends DrawerLayout {
|
72
|
73
|
lp.gravity = Gravity.START;
|
73
|
74
|
addView(sideMenuView, lp);
|
74
|
75
|
}
|
|
76
|
+
|
|
77
|
+ private void setStyle(SideMenuParams params) {
|
|
78
|
+ if (params.disableOpenGesture) {
|
|
79
|
+ setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_CLOSED);
|
|
80
|
+ }
|
|
81
|
+ }
|
75
|
82
|
}
|