2012-03-26 99 views

回答

2

您應該擴展SimpleCursorAdapter,以幫助您處理數據庫活動。

+0

是的,但我想在本指南中製作節標題:[link](http://jsharkey.org/blog/2008/08/18/separating-lists-with-headers-in-android-09/ ),它由BaseAdapter實現。 – 2012-03-26 15:05:54

+1

'SimpleCursorAdapter'是'BaseAdapter'的擴展 – dldnh 2012-03-26 15:17:02

+0

非常感謝! – 2012-03-26 15:57:37

1

您也是從數據庫的部分標題,還是他們是任意的?

如果它們來自數據庫,請嘗試使用SimpleCursorTreeAdapterEpandableListView

+0

謝謝,但他們不是......他們只是分開的日期範圍... – 2012-03-26 15:35:28