zhpanvip/BannerViewPager
zhpanvip/BannerViewPager has 3,774 GitHub stars and 466 forks. GitHot measured +1 stars in 24 hours, 0 in 7 days, and -3 in 15 days. Last checked 2026-11-22 07:35 UTC. Last push 2026-03-19.
实测星标增长
- 24小时
- +1
- 7天
- 0
- 15天
- -3
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
关于
🚀 一款基于 ViewPager2 的 Android 轮播图控件。这可能是全网最好用的 ViewPager 轮播图:简单高效,一行代码即可实现循环轮播;一屏可显示任意页数,指示器样式任你挑。
学习资源README_CN.md
原文BannerViewPager
English | 中文
腾讯视频、QQ音乐、酷狗音乐、支付宝、天猫、淘宝、优酷视频、喜马拉雅、网易云音乐、哔哩哔哩、全民K歌等App的Banner样式都可以通过BannerViewPager实现哦!
使用方法
1.快速开始
2.API文档
3.多类型Item View
4.使用ViewBinding与DataBinding
5.自定义Indicator
效果预览
点击或扫描二维码下载apk
由于蒲公英平台限制,每个版本最多只能下载10次。其他版本下载链接:[Download V3.5.0,Download V3.4.0

1.PageStyle
| MULTI_PAGE | MULTI_PAGE_SCALE | MULTI_PAGE_OVERLAP |
|---|---|---|
![]() |
![]() |
![]() |
更多页面样式
使用setPageStyle() 和 setRevealWidth()方法可以实现多种页面样式。
| Style 1 | Style 2 | Style 3 |
|---|---|---|
![]() |
![]() |
![]() |
2.Indicator
目前指示器已经从BannerViewPager中分离出来,现在单独为一个仓库,新的仓库地址为ViewPagerIndicator,你可以点击连接了解更多关于ViewPagerIndicator的信息。
(1)IndicatorStyle 与 IndicatorSlideMode
BannerViewPager目前已支持三种IndicatorViewStyle,以及五种IndicatorSlideMode,分别如下:
| 属性 | CIRCLE | DASH | ROUND_RECT |
|---|---|---|---|
| NORMAL | ![]() |
![]() |
![]() |
| SMOOTH | ![]() |
![]() |
![]() |
| WORM | ![]() |
![]() |
![]() |
| COLOR | ![]() |
![]() |
![]() |
| SCALE | ![]() |
![]() |
![]() |
(2)Custom Indicator
同时BannerViewPager还提供了自定义IndicatorView的功能。只要继承BaseIndicatorView或者实现IIndicator接口,并重写相应方法,就可以为所欲为的打造任意的Indicator了。
| Figure Indicator | Drawable Indicator | Indicator below of Banner |
|---|---|---|
![]() |
![]() |
![]() |
联系
| QQ群 | 微信群 |
|---|---|
![]() |
![]() |
感谢
License
Copyright 2017-2020 zhpanvip
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
探索相关项目
加载中…

























