@ Override public View getView ( int position , View convertView , ViewGroup parent ) { VH holder ; if ( convertView == null ) { // Load the view from scratch convertView = inflater . inflate ( viewResource , parent , false ) ; // Load the ViewHolder holder = createHolder ( convertView ) ; // set holder to the tag convertView . setTag ( holder ) ; } else { // Pull the view holder from convertView's tag holder = ( VH ) convertView . getTag ( ) ; } // bind the data to the holder bindHolder ( holder , position , getItem ( position ) ) ; return convertView ; }
Called to retrieve the view