diff --git a/FlipView/FlipLibrary/src/com/aphidmobile/flip/FlipViewController.java b/FlipView/FlipLibrary/src/com/aphidmobile/flip/FlipViewController.java index 42fabc2..ca1f7ec 100644 --- a/FlipView/FlipLibrary/src/com/aphidmobile/flip/FlipViewController.java +++ b/FlipView/FlipLibrary/src/com/aphidmobile/flip/FlipViewController.java @@ -103,7 +103,7 @@ public boolean handleMessage(Message msg) { //XXX: use a SparseArray to keep the related view indices? private int bufferIndex = -1; private int adapterIndex = -1; - private final int sideBufferSize = 1; + private int sideBufferSize = 1; private float touchSlop; @@ -239,6 +239,11 @@ public boolean isOverFlipEnabled() { public void setOverFlipEnabled(boolean overFlipEnabled) { this.overFlipEnabled = overFlipEnabled; } + + public void setSideBufferSize(int sideBufferSize) { + Assert.assertTrue("sideBufferSize cant be less than 1", sideBufferSize >= 1); + this.sideBufferSize = sideBufferSize; + } public boolean isFlipByTouchEnabled() { return flipByTouchEnabled;