Skip to content

Commit

Permalink
add Annotation for IndicatorGravity
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangpan-alo7 committed Aug 14, 2019
1 parent c82a610 commit 7cd1aff
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bannerview/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,5 @@ bintray {
}

//提交命令:gradlew bintrayUpload

// mac ./gradlew bintrayUpload 没有权限使用申请 chmod +x gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -471,6 +475,8 @@ public void create() {
}

@IntDef({CENTER, START, END})
@Retention(RetentionPolicy.SOURCE)
@Target(ElementType.PARAMETER)
public @interface IndicatorGravity {
}
}
Empty file modified gradlew
100644 → 100755
Empty file.

0 comments on commit 7cd1aff

Please sign in to comment.