File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,14 @@ public void setWidthOffset(int i) {
53
53
mWidthOffset = i ;
54
54
requestLayout ();
55
55
}
56
+
57
+ public void setMarginThreshold (int marginThreshold ) {
58
+ mMarginThreshold = marginThreshold ;
59
+ }
60
+
61
+ public int getMarginThreshold () {
62
+ return mMarginThreshold ;
63
+ }
56
64
57
65
public int getBehindWidth () {
58
66
return mContent .getWidth ();
Original file line number Diff line number Diff line change @@ -655,6 +655,22 @@ public void setBehindWidthRes(int res) {
655
655
public float getBehindScrollScale () {
656
656
return mViewBehind .getScrollScale ();
657
657
}
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
+ }
658
674
659
675
/**
660
676
* Sets the behind scroll scale.
You can’t perform that action at this time.
0 commit comments