diff --git a/LibBanner/src/main/java/com/ms/banner/Banner.java b/LibBanner/src/main/java/com/ms/banner/Banner.java index 9b1da68..5ac95de 100644 --- a/LibBanner/src/main/java/com/ms/banner/Banner.java +++ b/LibBanner/src/main/java/com/ms/banner/Banner.java @@ -464,7 +464,6 @@ private void setData() { } viewPager.setAdapter(adapter); viewPager.setCurrentItem(currentItem); - viewPager.setOffscreenPageLimit(count); if (isScroll && count > 1) { viewPager.setScrollable(true); } else { diff --git a/LibBanner/src/main/java/com/ms/banner/BannerNew.java b/LibBanner/src/main/java/com/ms/banner/BannerNew.java index 84bdf51..9916f34 100644 --- a/LibBanner/src/main/java/com/ms/banner/BannerNew.java +++ b/LibBanner/src/main/java/com/ms/banner/BannerNew.java @@ -462,7 +462,6 @@ private void setData() { } viewPager.setAdapter(adapter); viewPager.setCurrentItem(currentItem); - viewPager.setOffscreenPageLimit(count); if (isScroll && count > 1) { viewPager.setScrollable(true); } else {