How to update RecyclerView on dataset changes?
问题 I'm using ActiveAndroid ORM and UltimateRecyclerView in my Android application. I don't know how to display a data in a list using this popular libraries. I know, the data is saved to database correctly. Using the following method, I'm getting a cursor to the data I want to display. public Cursor eventsCursor() { // `Event` is an ActiveAndroid model class String query = new Select() .from(Event.class) .orderBy("time") .toSql(); return ActiveAndroid.getDatabase().rawQuery(query, null); } I