So, I have a ListFragment implementing LoaderCallbacks<Cursor>. I am selecting categories from custom table in the database, and showing them in a ListView, which is working fine. What I am trying to do is run query to retrieve sub-categories, based on category_id, in bindView of CursorAdapter, to put this sub-category titles inside listView, next to category title. I think this is causing performance issues.
Is there a way to initialize another loader (or any other way), that does handles this better?
I was thinking something along these lines:
onLoaderFinished method, initialize the second loader that will run then update the list with sub-category titles.
I feel comfortable with writing additional ContentProviders or Query Interfaces.
Any suggestions?
0 comments:
Post a Comment