Code example for PagerAdapter

Methods: finishUpdate

0
    } 
 
    @Override 
    public void finishUpdate(ViewGroup container) {
        mReusableView = null;
        super.finishUpdate(container);
    } 
 
    @Override 
    public boolean isViewFromObject(View view, Object object) {
        return view == object;
    } 
 
    @Override 
    public void destroyItem(ViewGroup container, int position, Object object) {
        MtpFullscreenView v = (MtpFullscreenView)object;
        container.removeView(v);
        mBroker.unregisterOnCheckedChangeListener(v);
        mReusableView = v;
    }