Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
zguop committed Feb 4, 2020
1 parent 27bfd4c commit 862d572
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Android轮播控件
[ ![Download](https://api.bintray.com/packages/a13706649811/maven/banner/images/download.svg?version=3.1.0-x) ](https://bintray.com/a13706649811/maven/banner/3.1.0-x/link)[ ![Download](https://api.bintray.com/packages/a13706649811/maven/banner/images/download.svg) ](https://bintray.com/a13706649811/maven/banner/_latestVersion)
[ ![Download](https://api.bintray.com/packages/a13706649811/maven/banner/images/download.svg?version=3.1.1-x) ](https://bintray.com/a13706649811/maven/banner/3.1.1-x/link)[ ![Download](https://api.bintray.com/packages/a13706649811/maven/banner/images/download.svg) ](https://bintray.com/a13706649811/maven/banner/_latestVersion)

ViewPager无限轮播功能。可以自定义indicator,需自定义实现 **Indicator** 接口,内置了圆形的IndicatorView,支持五种动画切换。
无缝衔接[MagicIndicator](https://github.com/hackware1993/MagicIndicator)大神的Indicator,打造花样Indicator,集成使用请参考Sample。
Expand All @@ -16,7 +16,8 @@ ViewPager无限轮播功能。可以自定义indicator,需自定义实现 **In
* 解决多次重复回调onPageSelected问题
* 解决添加到RecyclerView头部的滑动问题
* 良好的代码封装,更多优化请参考代码实现。


##### [版本更新内容点击查看](https://github.com/zguop/banner/releases)

## 效果图

Expand Down Expand Up @@ -58,8 +59,8 @@ ViewPager无限轮播功能。可以自定义indicator,需自定义实现 **In
Gradle
```groovy
dependencies{
implementation 'com.to.aboomy:banner:3.1.0' //最新版本
implementation 'com.to.aboomy:banner:3.1.0-x' //androidx版本
implementation 'com.to.aboomy:banner:3.1.1' //最新版本
implementation 'com.to.aboomy:banner:3.1.1-x' //androidx版本
}
```
或者引用本地lib
Expand Down Expand Up @@ -243,7 +244,10 @@ setOuterPageChangeListener(ViewPager.OnPageChangeListener outerPageChangeListene
|setIndicatorStyle(@IndicatorStyle int indicatorStyle)|设置圆点切换动画,内置五种切换动画,请参考Sample|
|setIndicatorColor(@ColorInt int indicatorColor)|设置默认的圆点颜色|
|setIndicatorSelectorColor(@ColorInt int indicatorSelectorColor) |设置选中的圆点颜色|
|setParams(RelativeLayout.LayoutParams params) |设置IndicatorView在banner中的位置,默认底部居中,距离底部10dp,请参考Sample|
|setParams(RelativeLayout.LayoutParams params) |设置IndicatorView在banner中的位置,默认底部居中,距离底部10dp,请参考Sample|
|setIndicatorRatio(float indicatorRatio)|设置indicator比例,拉伸圆为矩形,设置越大,拉伸越长,默认1.0,版本3.1.1新增|
|setIndicatorSelectedRadius(float indicatorSelectedRadius)|设置选中的圆角,默认和indicatorRadius值一致,可单独设置选中的点大小,版本3.1.1新增|
|setIndicatorSelectedRatio(float indicatorSelectedRatio)|设置选中圆比例,拉伸圆为矩形,控制该比例,默认比例和indicatorRatio一致,默认值1.0,版本3.1.1新增|

### 感谢
项目参考了[banner](https://github.com/youth5201314/banner) count+2的轮播思想。
Expand Down
2 changes: 1 addition & 1 deletion banner/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ BINTRAY_PKG_GROUP_ID=com.to.aboomy
# 包的ArtifactId
BINTRAY_PKG_ARTIFACT_ID=banner
# 包的版本号,下次更新是只需要更改版本号即可
BINTRAY_PKG_VERSION=3.1.0
BINTRAY_PKG_VERSION=3.1.1
# 包的打包方式 aar/jar
BINTRAY_PKG_PACKAGING=aar
# bintray上的仓库名
Expand Down

0 comments on commit 862d572

Please sign in to comment.