In RecyclerView, I want to set an empty view to be shown when the adapter is empty. Is there an equivalent of ListView.setEmptyView()?
RecyclerView
With the new data binding feature you can also achieve this in your layout directly:
In that case you just need to add a variable and an import to the data section of your XML: