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
I would prefer to implement this functionality in Recycler.Adapter
On your overridden getItemCount method, inject empty check codes there:
@Override public int getItemCount() { if(data.size() == 0) listIsEmtpy(); return data.size(); }