Reload RecyclerView after data change with Room, ViewModel and LiveData
问题 I am trying, without success, to solve a problem for days. I would like to update my recyclerView whenever the records of a particular model change in the Database (DB Room). I use ViewModel to handle the model data and the list of records are stored in LiveData. Database @Database(entities = arrayOf(Additive::class), version = ElementDatabase.DB_VERSION, exportSchema = false) abstract class ElementDatabase() : RoomDatabase() { companion object { const val DB_NAME : String = "element_db"