Alin B.
07/12/2018, 8:24 PMfragment with recyclerview so basically:
1. in fragment get the ViewModel and call `viewModel.data().observer(...){adapter.submitList(result)}
2. in ViewModel I have data() as repository.getData() returning LiveData
3. inside the adapter do `bind`within onBindViewHolder to the item from data at current position.
4. in the xml for list item add the binding as <variable name="item" type="package.data"/>
Is this right or wrong?