Code example for PagerAdapter

Methods: finishUpdate

0
        container.removeView(mViews.get(position));
    } 
 
    @Override 
    public void finishUpdate(ViewGroup container) {
        super.finishUpdate(container);
    } 
 
    @Override 
    public Object instantiateItem(ViewGroup container, int position) {
        container.addView(mViews.get(position));
        return mViews.get(position);
    } 
 
    @Override 
    public boolean isViewFromObject(View arg0, Object arg1) {
        return (arg0 == (View)arg1);
    } 
 
}