Skip to content
Advertisement

Tag: relational-database

How can I make a ListView load parent and childs related by ForeignKey?

For now, I have a working ListView that successfully loads every “parent” object in the ListView, retrieving the parent attributes and showing them in every element. Due to I am trying to follow Android’s Model-View-ViewModel architecture patterns, I am using RoomDb, a Repository class and a ViewModel class (viewmodel class holds logic for both parent and children; I wonder if

Advertisement