Using RecyclerView and SnapHelper replace ViewPager.
This library provides some useful classes for RecyclerView.
-
FragmentRecyclerAdapter
Helping Fragments to display in RecyclerView.ViewHolder. It's similar to
android.support.v4.app.FragmentPagerAdapter
-
SnapPageScrollListener
It's similar to
ViewPager.OnPageChangeListener
dependencies {
compile 'me.relex:recyclerpager:1.0.4'
}
Fork from https://github.com/ogaclejapan/SmartTabLayout
Making the widget extendable
The New SmartTabLayout works with RecyclerView and SnapHelper