2013-01-02 70 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方法,因爲預壓的越來越屏幕上可見之前調用。但我認爲,這就是你要找的。

相關問題