trubesv
09/09/2017, 3:47 PMandroid:visibility="@{adapter.itemCount > 0}
- a list_empty.xml layout with android:visibility="@{adapter.itemCount == 0}
The issue is that I have trouble linking the adapter
variable to the xmls 😕aidanvii
09/09/2017, 6:44 PMaidanvii
09/09/2017, 6:45 PMRecyclerView
and data binding, is keep a bindable collection in a view-modelaidanvii
09/09/2017, 6:46 PMaidanvii
09/09/2017, 6:47 PMList
, ObservableList
, ObservableArrayMap
, and SortedList
. The solution was very complex under the hood, I never managed to get it out there, fully tested with example code, but plan toaidanvii
09/09/2017, 6:48 PMaidanvii
09/09/2017, 6:49 PMaidanvii
09/09/2017, 6:49 PMaidanvii
09/09/2017, 7:02 PMapp:bind_collection="@{viewModel.observableList}"
trubesv
09/16/2017, 10:42 PM