Code example for PagerAdapter

Methods: startUpdate

0
		return fragment;
	} 
 
	@Override 
	public void startUpdate(ViewGroup container) {
		super.startUpdate(container);
	} 
 
	@Override 
	public boolean isViewFromObject(View view, Object obj) {
		return ((Fragment)obj).getView() == view;
	} 
	 
    @Override 
    public void finishUpdate(View container) {
        if (mCurTransaction != null) {
            mCurTransaction.commit();
            mCurTransaction = null;
            mFragmentManager.executePendingTransactions();
        } 
    }