My app uses the android.support.v4.view.ViewPager class. For each page in the ViewPager, I want there to be one Fragment, each with its own layout file. Each Fr
android.support.v4.view.ViewPager
Just return proper Fragment instance in getItem(int position) by position. use switch~case, It's easy.