From e8b38a7cc9b02af71f0d9c741bcc2d547bdb3d4d Mon Sep 17 00:00:00 2001 From: Trinea Date: Sun, 2 Mar 2014 12:23:14 +0800 Subject: [PATCH] Add AutoScrollViewPager setting --- src/cn/trinea/android/demo/AutoScrollViewPagerSingleDemo.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cn/trinea/android/demo/AutoScrollViewPagerSingleDemo.java b/src/cn/trinea/android/demo/AutoScrollViewPagerSingleDemo.java index cbd3bec..5f537fe 100644 --- a/src/cn/trinea/android/demo/AutoScrollViewPagerSingleDemo.java +++ b/src/cn/trinea/android/demo/AutoScrollViewPagerSingleDemo.java @@ -51,6 +51,8 @@ protected void onCreate(Bundle savedInstanceState) { // // set how to process when sliding at the last or first item // // default is AutoScrollViewPager#SLIDE_BORDER_NONE // viewPager.setBorderProcessWhenSlide(AutoScrollViewPager.SLIDE_BORDER_CYCLE); + // viewPager.setScrollDurationFactor(3); + // viewPager.setBorderAnimation(false); } @Override