I'm making a new app, using the "Swipe View + Tile Strip" layout, but can't seem to figure out how to actually load different views into the fragments of the FragmentPagerAdapter?
Any help on this would be great (I'm still quite new to android development, so go easy ;) )
In a FragmentPagerAdapter you don't load Views, but Fragments.
Read the official documentation of FragmentPagerAdapter, which has a nice tutorial also. This is the first step to understand this Pager.
http://developer.android.com/reference/android/support/v4/app/FragmentPagerAdapter.html
Good luck!
Create a class that extends
FragmentPagerAdapter
.Override
getItem()
and return a different fragment for each position.Try something like this: