@ Override public View getView ( int position , View convertView , ViewGroup parent ) { if ( position == super . getCount ( ) && isEnableRefreshing ( ) ) { return ( mFooter ) ; } return ( super . getView ( position , convertView , parent ) ) ; }
Get a View that displays the data at the specified position in the data set . In this case if we are at the end of the list and we are still in append mode we ask for a pending view and return it plus kick off the background task to append more data to the wrapped adapter .