How can I create child views dynamically in MVVM Android?
I am new to MVVM in Android.
Is there a way to add child views of group layout such as chipgroup, radiogroup?
Let's say there is this kind of data from a server.
[name: 'coffee', size: 'tall', 'grande', 'venti' ...,
name: 'pizza', size: 'small', 'medium', 'large' ...]
And here is what I have done so far:
main XML
ViewModel
val listItem = MutableLiveData(...)
listItem= ... // get data and convert into view data blabla
ItemViewModel
class ItemViewModel() {
val name:String
val...