This library has been added some features and utilities based on android-SlidingTabBasic project of Google Samples.
//Optional: see how to use the utility.
Include the SmartTabLayout widget in your layout.
This should usually be placed above the ViewPager it represents.
(Optional) Using the FragmentPagerItemAdapter of utility, you will be able to get a position in the Fragment side.