Skip to content

Latest commit

 

History

History
122 lines (70 loc) · 7.17 KB

README_CN.md

File metadata and controls

122 lines (70 loc) · 7.17 KB

BannerViewPager

License MinSdk JitPack Android Arsenal Android Arsenal Stars

English | 中文

腾讯视频、QQ音乐、酷狗音乐、支付宝、天猫、淘宝、优酷视频、喜马拉雅、网易云音乐、哔哩哔哩、全民K歌等App的Banner样式都可以通过BannerViewPager实现哦!

使用方法

效果预览

由于蒲公英平台限制,每个版本最多只能下载10次。其他版本下载链接:[Download V3.5.0,Download V3.4.0

扫描下载Demo

1.PageStyle

一屏多页示例

MULTI_PAGE MULTI_PAGE_SCALE MULTI_PAGE_OVERLAP
MULTI_PAGE MULTI_PAGE MULTI_PAGE

更多页面样式

使用setPageStyle() 和 setRevealWidth()方法可以实现多种页面样式。

Style 1 Style 2 Style 3
MULTI_PAGE1 MULTI_PAGE2 MULTI_PAGE3

目前指示器已经从BannerViewPager中分离出来,现在单独为一个仓库,新的仓库地址为ViewPagerIndicator,你可以点击连接了解更多关于ViewPagerIndicator的信息。

(1)IndicatorStyle 与 IndicatorSlideMode

Indicator使用示例

BannerViewPager目前已支持三种IndicatorViewStyle,以及五种IndicatorSlideMode,分别如下:

属性 CIRCLE DASH ROUND_RECT
NORMAL CIRCLE_NORMAL DASH_NORMAL ROUND_RECT_NORMAL
SMOOTH CIRCLE_SMOOTH DASH_SMOOTH ROUND_RECT_SMOOTH
WORM CIRCLE_WORM DASH_WORM ROUND_WORM
COLOR CIRCLE_COLOR DASH_COLOR ROUND_COLOR
SCALE CIRCLE_SCALE DASH_SCALE ROUND_SCALE

(2)Custom Indicator

同时BannerViewPager还提供了自定义IndicatorView的功能。只要继承BaseIndicatorView或者实现IIndicator接口,并重写相应方法,就可以为所欲为的打造任意的Indicator了。

自定义Indicator示例

Figure Indicator Drawable Indicator Indicator below of Banner
CIRCLE DASH NORMAL

联系

如果使用中有任何问题可以加群交流: QQ群60902509

QQ群 微信群
QQ Group WeChat

感谢

玩Android

finite-cover-flow

zguop-banner

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.