@ Override public final Object instantiateItem ( final ViewGroup container , final int position ) { if ( Constants . DEBUG ) { Log . i ( "InfiniteViewPager" , String . format ( "instantiating position %s" , position ) ) ; } final PageModel < T > model = createPageModel ( position ) ; mPageModels [ position ] = model ; container . addView ( model . getParentView ( ) ) ; return model ; }
This method is only called when this pagerAdapter is initialized .