I can now bind a CursorAdapter to a ListView
. And the ListView can update automatically when the database is modified.
For the data rows in the database has a field 'type', they can be 'Daily', 'Weekly', 'Monthly', .etc. And I want to display the rows in ExpandableListView, so that every type of rows can group together. And I also want the ExpandableListView can update automatically when the database is modified. How can I combine the CursorAdapter and ExpandableListView together?
I googled a lot, but cannot find a solution, thank you for your attention!
It's referred to as a CursorTreeAdapter
http://developer.android.com/reference/android/widget/CursorTreeAdapter.html
http://developer.android.com/reference/android/widget/SimpleCursorTreeAdapter.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With