Sfoglia il codice sorgente

Rename showIndicatorWhenOnItem

zhpanvip 3 anni fa
parent
commit
70d98060ed

+ 3 - 3
bannerview/src/main/java/com/zhpan/bannerview/BannerViewPager.java

@@ -1093,11 +1093,11 @@ public class BannerViewPager<T> extends RelativeLayout implements LifecycleObser
 
   /**
    * @param showIndicatorWhenOneItem 只有一个item时是否显示指示器,
-   * true:显示,false:不显示,默认值false
+   *                                 true:显示,false:不显示,默认值false
    */
-  public BannerViewPager<T> showIndicatorWhenOnItem(boolean showIndicatorWhenOneItem) {
+  public BannerViewPager<T> showIndicatorWhenOneItem(boolean showIndicatorWhenOneItem) {
     mBannerManager.getBannerOptions()
-        .showIndicatorWhenOnItem(showIndicatorWhenOneItem);
+            .showIndicatorWhenOneItem(showIndicatorWhenOneItem);
     return this;
   }
 

+ 1 - 1
bannerview/src/main/java/com/zhpan/bannerview/manager/BannerOptions.java

@@ -123,7 +123,7 @@ public class BannerOptions {
     mIndicatorOptions.setSliderWidth(normalWidth, checkedWidth);
   }
 
-  public void showIndicatorWhenOnItem(boolean showIndicatorWhenOneItem) {
+  public void showIndicatorWhenOneItem(boolean showIndicatorWhenOneItem) {
     mIndicatorOptions.setShowIndicatorOneItem(showIndicatorWhenOneItem);
   }