private View getSlideView ( int position ) { // Do we have a view in our recycling bean? int viewType = adapter . getItemViewType ( position ) ; View recycledView = recycledViews . get ( viewType ) ; View v = adapter . getView ( position , recycledView , this ) ; return v ; }
Get a view for the slide at the given index . If possible we will reuse a view from our recycled pool . If not we will ask the adapter to create one from scratch .