Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

setter for FlipViewController.sideBufferSize property #56

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;
Expand Down