diff --git a/bannerview/src/main/java/com/zhpan/bannerview/BannerViewPager.java b/bannerview/src/main/java/com/zhpan/bannerview/BannerViewPager.java index 734a991..a840721 100644 --- a/bannerview/src/main/java/com/zhpan/bannerview/BannerViewPager.java +++ b/bannerview/src/main/java/com/zhpan/bannerview/BannerViewPager.java @@ -500,6 +500,17 @@ public void startLoop() { } } + /** + * Start loop immediately + */ + public void startLoopNow() { + if (!isLooping && isAutoPlay() && mBannerPagerAdapter != null && + mBannerPagerAdapter.getListSize() > 1) { + mHandler.post(mRunnable); + isLooping = true; + } + } + /** * Stop loop */