-
-
Notifications
You must be signed in to change notification settings - Fork 436
Home
zhpanvip edited this page Dec 13, 2020
·
7 revisions
- Migrate to ViewPager2
- Multiple item type supported
- setOrientation supported
- addPageTransformer and removeTransformer supported
- setAdapter replaces setHolderCreator
- getData replaces getList
- registerOnPageChangeCallback replaces setOnPageChangeListener
- setUserInputEnabled replaces disableTouchScroll
- remove setPageTransformerStyle
- remove some deprecate methods in v2.x
- no longer support android.support library
- SCALE slide mode and COLOR slide mode supported(V3.1.0)
- refreshData() supported (V3.1.0)
- setLifecycleRegistry(Lifecycle) supported (v3.1.4)
- addData(List) Supported (3.2.0)
- insertItem and removeItem Supported. (3.2.0)
- addItemDecoration Supported. (3.2.0)
Due to the download platform restrictions, each version can only be downloaded up to 10 times. Download links for other versions::Download V3.2.0,Download V3.1.4
MULTI_PAGE | MULTI_PAGE_SCALE | MULTI_PAGE_OVERLAP |
---|---|---|
The Indicator library was split from BannerViewPager,the new repo is ViewPagerIndicator,Click the link to see more information about ViewPagerIndicator
BannerViewPager supports three Indicator Styles and five Indicator Slide mode now.
Attrs | CIRCLE | DASH | ROUND_RECT |
---|---|---|---|
NORMAL | |||
SMOOTH | |||
WORM | |||
COLOR | |||
SCALE |
It's also support to custom indicator style,just need extends BaseIndicatorView or implement the IIndicator and override methods, then you can draw Indicators for whatever you want.
Figure Indicator | Drawable Indicator | Indicator below of Banner |
---|---|---|