问题描述:

When RecyclerView.Adapter change, should I reevaluate rawQuery and assign cursor again and call notifyDataSetChanged() method? Or is any easier solution?

String rawQuery = "...";

Cursor cursor1 = MainActivity.db.rawQuery(rawQuery, null);

ItemUserSettingRatingActivity.itemAdapter.cursor = cursor1;

IterUserSettingRatingActivity.itemAdapter.notifyDataSetChanged();

相关阅读:
Top