我對ExpandableListView
使用SimpleCursorTreeAdapter
。問題是一旦使用了groupCursor,那麼在getChildCursor(Cursor groupCursor)
groupCursor返回意外的列,groupCursor
中的列是替換與子游標的列。SimpleCursorTreeAdapter的getChildCursor()中的光標錯誤
我無法跟蹤爲什麼組遊標列被替換爲子列。是否使用SimpleCursorTreeAdapter
將數據庫與ExpandableListView
綁定是一種好方法。
我想在CursorTreeAdapter和SimpleCursorTreeAdapter中使用過去3天的不同方法。
有關更多詳細說明,請查找以下屏幕截圖。
構造與具有3列
在getChidrenCount()光標,返回正確的結果高達一些iterations.You可以看到列在調試仍然是3
正確初始化經過一些迭代後,列值被改變。這是總的問題是...
建議我最好的解決方案。
謝謝& Regards,
Sha。