Code example for PagerAdapter

Methods: finishUpdate

0
		mCurTransaction.remove(f);
	} 
 
	@Override 
	public void finishUpdate(ViewGroup container) {
		super.finishUpdate(container);
	} 
 
	@Override 
	public Object instantiateItem(View container, int position) {
		Log.i(TAG, "Creating image: " + images.get(position).getName());
		if (mCurTransaction == null) {
            mCurTransaction = mFragmentManager.beginTransaction();
        }		ImageFragment fragment = new ImageFragment(images.get(position));
		fragments.put(position, fragment);
		mCurTransaction.add(container.getId(), fragment);
		return fragment;
	} 
 
	@Override 
	public void startUpdate(ViewGroup container) {