This repo shows how to use ViewPager with dynamic fragments and tabs. It also illustrates how to communicate to the parent activity from child fragments