I have a table that has a few rows that are static and n number of rows below that are dynamic followed by n static rows. In CSS I would simply give the dynamic rows a class name and grab those, but I'm wondering what a good solution in android would be? I've looked into LiveData and I'm not 100% sure it will work for my use case. The data in these rows are populated from a database, that I have with data coming from a query (I'm using Room as my ORM). The tablerows are added to the UI from java code (part of the layout comes from a custom view that I've created). I'm thinking that I can just add an object to a list that has the data and try and do 2 way data binding there.
Aucun commentaire:
Enregistrer un commentaire