Get the Code Here :
SlideNerd’s Channel :
In this tutorial I provide an Android Material Design sliding tab example program and cover ViewPager and FragmentPagerAdapter.
This will allow us to use the newest form of sliding tabs that is also backwards compatible. I did my best to keep everything as simple as possible so that you can use this code in your applications immediately.
Here is a link to the code you’ll need from Google :