Code example for FragmentStatePagerAdapter

Methods: instantiateItem

	//TODO: Add a gradient background from resources  
	//without sacrifying performance  
	public Object instantiateItem(ViewGroup arg0, int arg1) {
		return super.instantiateItem(arg0, arg1);
	private List<Fragment> fragments;
	public ComplexPagerViewAdapter(FragmentActivity activity,
			List<Fragment> fragments) {
		this.fragments = fragments;
	public Fragment getItem(int i) {
		return fragments.get(i);
Connect your IDE to all the code out there  Get Codota for Java