From 7cd1aff3e49cd81e874261fa0a4a0ffd2b64bb4f Mon Sep 17 00:00:00 2001 From: zhangpan Date: Wed, 14 Aug 2019 17:29:06 +0800 Subject: [PATCH] add Annotation for IndicatorGravity --- bannerview/build.gradle | 2 ++ .../src/main/java/com/zhpan/bannerview/BannerViewPager.java | 6 ++++++ gradlew | 0 3 files changed, 8 insertions(+) mode change 100644 => 100755 gradlew diff --git a/bannerview/build.gradle b/bannerview/build.gradle index ed47b79a..accb97b3 100644 --- a/bannerview/build.gradle +++ b/bannerview/build.gradle @@ -108,3 +108,5 @@ bintray { } //提交命令:gradlew bintrayUpload + +// mac ./gradlew bintrayUpload 没有权限使用申请 chmod +x gradlew diff --git a/bannerview/src/main/java/com/zhpan/bannerview/BannerViewPager.java b/bannerview/src/main/java/com/zhpan/bannerview/BannerViewPager.java index 0f68491b..23d9caa0 100644 --- a/bannerview/src/main/java/com/zhpan/bannerview/BannerViewPager.java +++ b/bannerview/src/main/java/com/zhpan/bannerview/BannerViewPager.java @@ -26,6 +26,10 @@ import com.zhpan.bannerview.provider.ViewStyleSetter; import com.zhpan.bannerview.view.IndicatorView; +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; import java.lang.reflect.Field; import java.util.ArrayList; import java.util.List; @@ -471,6 +475,8 @@ public void create() { } @IntDef({CENTER, START, END}) + @Retention(RetentionPolicy.SOURCE) + @Target(ElementType.PARAMETER) public @interface IndicatorGravity { } } diff --git a/gradlew b/gradlew old mode 100644 new mode 100755