This is a simple demo that shows how to setup a ViewPager with FragmentPagerAdapter and tabs. This post is related to the following post. The Java version of this repo can be found here.