What works?
XML:
name=\"viewModel\"
type=\"com. . . . .MyViewModel\" />
...
...
...
Change this like below in viewmodel
private MutableLiveData> feedListLivedata = new MutableLiveData<>();;
public MyViewModel() {
//create a list of feed here
setFeeds(feeds);
}
public void setFeeds( List feeds) {
feedListLivedata .postValue(feeds);
}
//create getter and setter for feed list live data.
And now in xml
app:items="@{viewModel.feedListLivedata }"