Back to project page iTunesAndroidPreview.
The source code is released under:
GNU General Public License
If you think the Android project iTunesAndroidPreview listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.besaba.srmu.adapter; /*w w w . jav a2 s. c o m*/ import com.besaba.srmu.CustomizedListView; import com.besaba.srmu.GamesFragment; import com.besaba.srmu.MoviesFragment; import com.besaba.srmu.TopRatedFragment; import android.content.Intent; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentPagerAdapter; import android.support.v4.app.FragmentTabHost; public class TabsPagerAdapter extends FragmentPagerAdapter { public TabsPagerAdapter(FragmentManager fm) { super(fm); } @Override public Fragment getItem(int index) { switch (index) { case 0: // Games fragment activity return new GamesFragment(); case 1: // Movies fragment activity return new MoviesFragment(); } return null; } @Override public int getCount() { // get item count - equal to number of tabs return 2; } }