2013-01-02 40 views

回答

0

试试这个:

@Override 
    public View getView(int position, View convertView, ViewGroup parent) { 
     View view = convertView; 
     if (view == null) { 
      LayoutInflater inflator = mContext.getLayoutInflater(); 
      view = inflator.inflate(android.R.layout.your_item_layout, null); 
     } 

     //your specific code here 

     if (position == mList.size()-1){ 
      //fetch other batch of data 
     } 

     return view; 
    } 

getView方法,因为预压的越来越屏幕上可见之前调用。但我认为,这就是你要找的。

相关问题