Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Smarttablayout | 6,611 | 537 | 4 years ago | 19 | March 09, 2019 | 114 | apache-2.0 | Java | ||
A custom ViewPager title strip which gives continuous feedback to the user when scrolling | ||||||||||
Ultraviewpager | 5,018 | 39 | 2 | 2 years ago | 11 | January 02, 2019 | 57 | mit | Java | |
UltraViewPager is an extension for ViewPager to provide multiple features in a single ViewPager. | ||||||||||
Viewpagertransforms | 2,437 | 299 | 3 years ago | 5 | January 28, 2019 | 7 | apache-2.0 | Kotlin | ||
Library containing common animations needed for transforming ViewPager scrolling for Android v13+. | ||||||||||
Loopingviewpager | 992 | 4 years ago | 23 | apache-2.0 | Java | |||||
An android ViewPager extension allowing infinite scrolling | ||||||||||
Decentbanner | 876 | 7 years ago | 1 | apache-2.0 | Java | |||||
Flipboard's ViewPager-based Android Banner that supports auto scrolling and decent animation | ||||||||||
Infiniteviewpager | 682 | 5 years ago | 32 | mit | Java | |||||
Augment Android's ViewPager with wrap-around functionality. | ||||||||||
Coolviewpager | 429 | 5 years ago | apache-2.0 | Java | ||||||
A Cool ViewPager | ||||||||||
Infiniteviewpager | 287 | 7 years ago | 8 | mit | Java | |||||
InfiniteViewPager is a modified android ViewPager widget that allows infinite paging and auto-scrolling. | ||||||||||
Stickheaderlayout | 138 | 5 years ago | 7 | apache-2.0 | Java | |||||
An Android library supports sticking the navigator on the top when ItemView scrolls. | ||||||||||
Snappingswipingrecyclerview | 98 | 7 years ago | Java | |||||||
This is an extension of RecyclerView to add ViewPager-like snapping and scrolling, as well as a custom implementaion of swiping behaviour. The swiping is different from the default ItemTouchHelper that it supports only allowing swiping after long press. |
ProjectUltraViewPager
is a ViewPager extension that encapsulates multiple features, mainly to provide a unified solution for multi-page switching scenarios.
you can combine multiple features at the same time.
UltraViewPager is a super extension for ViewPager. It's actually a RelativeLayout in order to display ViewPager and Indicator.UltraViewPager offers some common method delegate for ViewPager, you can also invoke more method by call getViewPager() and get the actual ViewPager.
In order to achieve vertical scroll, through exchanging MotionEvent in onInterceptTouchEvent and onTouchEvent.For more details, you can read the source code.
Please find the latest version(1.0.7.7 so far) in maven repository. The newest version has been upload to jcenter and MavenCantral, make sure you have added at least one of these repositories.
Using Gradle:
//gradle
compile ('com.alibaba.android:ultraviewpager:1.0.7.7@aar') {
transitive = true
}
or grab via Maven:
//pom.xml in maven
<dependency>
<groupId>com.alibaba.android</groupId>
<artifactId>ultraviewpager</artifactId>
<version>1.0.7.7</version>
<type>aar</type>
</dependency>
Create your own layout using a UltraViewPager:
activity_pager.xml
<com.tmall.ultraviewpager.UltraViewPager
android:id="@+id/ultra_viewpager"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:background="@android:color/darker_gray" />
You can follow my tutorial below on how to use UltraViewPager:
UltraViewPager ultraViewPager = (UltraViewPager)findViewById(R.id.ultra_viewpager);
ultraViewPager.setScrollMode(UltraViewPager.ScrollMode.HORIZONTAL);
//initialize UltraPagerAdapter,and add child view to UltraViewPager
PagerAdapter adapter = new UltraPagerAdapter(false);
ultraViewPager.setAdapter(adapter);
//initialize built-in indicator
ultraViewPager.initIndicator();
//set style of indicators
ultraViewPager.getIndicator()
.setOrientation(UltraViewPager.Orientation.HORIZONTAL)
.setFocusColor(Color.GREEN)
.setNormalColor(Color.WHITE)
.setRadius((int)TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 5, getResources().getDisplayMetrics()));
//set the alignment
ultraViewPager.getIndicator().setGravity(Gravity.CENTER_HORIZONTAL | Gravity.BOTTOM);
//construct built-in indicator, and add it to UltraViewPager
ultraViewPager.getIndicator().build();
//set an infinite loop
ultraViewPager.setInfiniteLoop(true);
//enable auto-scroll mode
ultraViewPager.setAutoScroll(2000);
For other API reference,see this to read more.
Before you open an issue or create a pull request, please read Contributing Guide first.
UltraViewPager
is available under the MIT license.