Code example for PagerAdapter

0
/** 
 * Implementation of {@link PagerAdapter} that represents each page as a {@link View}. 
 * 
 * @author Sebastian Kaspari <s.kaspari@gmail.com> 
 */ 
public abstract class ViewPagerAdapter extends PagerAdapter 
{ 
    /** 
     * Get a View that displays the data at the specified position in the data set. 
     * 
     * @param position The position of the item within the adapter's data set of the item whose view we want. 
     * @param pager    The ViewPager that this view will eventually be attached to. 
     * 
     * @return A View corresponding to the data at the specified position. 
     */ 
    public abstract View getView(int position, ViewPager pager);
 
    /** 
     * Determines whether a page View is associated with a specific key object as 
     * returned by instantiateItem(ViewGroup, int). 
     *