Code example for FragmentPagerAdapter

Methods: instantiateItem

0
    } 
 
    @Override 
    public Object instantiateItem(ViewGroup pager, int position) {
    	if (debug) Log.i(TAG, "instantiateItem @ " + position);
    	return super.instantiateItem(pager, position);
    } 
     
//    public Object getItemReference (ViewGroup pager, int position) { 
////    	if (mCurTransaction == null) { 
////            mCurTransaction = mFragmentManager.beginTransaction(); 
////        } 
//    	 
//    	String name = makeFragmentName(pager.getId(), position); 
//        Fragment fragment = fm.findFragmentByTag(name); 
//    } 
 
    @Override 
    public boolean isViewFromObject(View view, Object object) {
    	//if (debug) Log.i(TAG, "isViewFromObject result = " + super.isViewFromObject(view, object)); 
    	return super.isViewFromObject(view, object);