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 @@ -50,6 +50,14 @@ public void setWidthOffset(int i) {
50
50
mWidthOffset = i ;
51
51
requestLayout ();
52
52
}
53
+
54
+ public void setMarginThreshold (int marginThreshold ) {
55
+ mMarginThreshold = marginThreshold ;
56
+ }
57
+
58
+ public int getMarginThreshold () {
59
+ return mMarginThreshold ;
60
+ }
53
61
54
62
public int getBehindWidth () {
55
63
return mContent .getWidth ();
Original file line number Diff line number Diff line change @@ -617,6 +617,22 @@ public void setBehindWidthRes(int res) {
617
617
public float getBehindScrollScale () {
618
618
return mViewBehind .getScrollScale ();
619
619
}
620
+
621
+ /**
622
+ * Gets the touch mode margin threshold
623
+ * @return the touch mode margin threshold
624
+ */
625
+ public int getTouchmodeMarginThreshold () {
626
+ return mViewBehind .getMarginThreshold ();
627
+ }
628
+
629
+ /**
630
+ * Set the touch mode margin threshold
631
+ * @param touchmodeMarginThreshold
632
+ */
633
+ public void setTouchmodeMarginThreshold (int touchmodeMarginThreshold ) {
634
+ mViewBehind .setMarginThreshold (touchmodeMarginThreshold );
635
+ }
620
636
621
637
/**
622
638
* Sets the behind scroll scale.
You can’t perform that action at this time.
0 commit comments