How do I Check If Recyclerview Is Empty

Recycling view empty
You should use RecyclerView in a situation where you want to show a lot of items, and the number of them is dynamic. ListView should only be used when the number of items is always the same and is limited to the screen size.
if (recyclerview.getItemCount() == 0) { Toast.makeText(getActivity(), "No records to show!", Toast.LENGTH_SHORT).show(); } |
