Code example for FragmentPagerAdapter

Methods: instantiateItem

0
        return f;
    } 
 
    @Override 
    public Object instantiateItem(ViewGroup container, int position) {
        return super.instantiateItem(container, position);
    } 
 
    @Override 
    public int getCount() { 
        return PAGE_NUMBER;
    } 
 
    @Override 
    public float getPageWidth(int position) {
        return mPageWidth;
    } 
}