2013-05-30 51 views

回答

4

可能是你應該試試這個:

@Override 
public View getView(int position, View convertView, ViewGroup parent) { 
    if (position % 2 == 0) { 
     //inflate your one cell layout 
    } else { 
     //inflate your two cell layout 
    } 

    return view; 
} 
+0

是的..請在數組中有5個左右的記錄..需要根據上面的模板顯示..我有嘗試了這個概念,但成功...我如何處理數據..當前問題? –