android.widget.BaseExpandableListAdapter
android.widget.CursorTreeAdapter
android.widget.ResourceCursorTreeAdapter
直接子類
SimpleCursorTreeAdapter
類概述
一個簡單的可擴充的ExpandableListAdapter,通過在XML檔案來建立views。你可以指定一個定義了views外觀的XML檔案。
構造函數
public ResourceCursorTreeAdapter (Context context, Cursor cursor, int collapsedGroupLayout, int expandedGroupLayout, int childLayout, int lastChildLayout)
構造函數。
參數
context 和正在運作的SimpleListItemFactory關聯的ListView的上下文
cursor 資料庫遊标
collapsedGroupLayout 定義了收縮組的視圖布局檔案的資源辨別
expandedGroupLayout 定義了展開組的視圖布局檔案的資源辨別
childLayout 定義了除了最後一個的所有子視圖的布局檔案的資源辨別
lastChildLayout 定義了一組中最後一個子視圖的布局檔案的資源辨別
public ResourceCursorTreeAdapter (Context context, Cursor cursor, int collapsedGroupLayout, int expandedGroupLayout, int childLayout)
構造函數。