Skip to content

Commit 3cbbf47

Browse files
committed
Merge pull request jfeinstein10#189 from Appstrakt/master
Added getter and setter for the touchmode margin threshold
2 parents 7753bbb + a3650fe commit 3cbbf47

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

library/src/com/slidingmenu/lib/CustomViewBehind.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,14 @@ public void setWidthOffset(int i) {
5353
mWidthOffset = i;
5454
requestLayout();
5555
}
56+
57+
public void setMarginThreshold(int marginThreshold) {
58+
mMarginThreshold = marginThreshold;
59+
}
60+
61+
public int getMarginThreshold() {
62+
return mMarginThreshold;
63+
}
5664

5765
public int getBehindWidth() {
5866
return mContent.getWidth();

library/src/com/slidingmenu/lib/SlidingMenu.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -655,6 +655,22 @@ public void setBehindWidthRes(int res) {
655655
public float getBehindScrollScale() {
656656
return mViewBehind.getScrollScale();
657657
}
658+
659+
/**
660+
* Gets the touch mode margin threshold
661+
* @return the touch mode margin threshold
662+
*/
663+
public int getTouchmodeMarginThreshold() {
664+
return mViewBehind.getMarginThreshold();
665+
}
666+
667+
/**
668+
* Set the touch mode margin threshold
669+
* @param touchmodeMarginThreshold
670+
*/
671+
public void setTouchmodeMarginThreshold(int touchmodeMarginThreshold) {
672+
mViewBehind.setMarginThreshold(touchmodeMarginThreshold);
673+
}
658674

659675
/**
660676
* Sets the behind scroll scale.

0 commit comments

Comments
 (0)