支持无限滑动的3D视觉的画廊效果、 平面普通广告栏轮播
3D轮播图片
Step 1. Add it in your root build.gradle at the end of repositories:
allprojects { repositories { ... maven { url 'https://jitpack.io' } } }
Step 2. Add the dependency
```
dependencies {
//androidX
implementation 'com.github.lzjin:ViewPagerGallery:1.3'
//Support implementation 'com.github.lzjin:ViewPagerGallery:1.2'
} ```
banner.initBanner(urlList, true)//开启3D画廊效果 .addPageMargin(10, 50)//参数1page之间的间距,参数2中间item距离边界的间距 .addPointMargin(6)//指示器点间距 .addStartTimer(8)//自动轮播5秒间隔 .addPointBottom(7)//底部间距 .addRoundCorners(12)//圆角 .finishConfig()//这句必须加 .addBannerListener(new BannerViewPager.OnClickBannerListener() { @Override public void onBannerClick(int position) { //点击item } });
优化更新