How to refresh a ListView to requery its cursor to repopulate its data and its views

后端 未结 4 834
孤街浪徒
孤街浪徒 2021-01-12 04:03

I have a ListView which uses a CursorAdatper as its adapter. I would like to have the list view to

  • requery its data
  • refresh its view once the requery
4条回答
  •  无人共我
    2021-01-12 04:52

    In the new API (using loader manager) you can use:

    getLoaderManager().getLoader(_YOUR_LOADER_ID_).forceLoad();
    

提交回复
热议问题