Check if recyclerview is empty by if (recyclerview.getItemCount() == 0) { Toast.makeText(getActivity(), "No records to show!", Toast.LENGTH_SHORT).show(); }if (recyclerview.getItemCount() == 0) { Toast.makeText(getActivity(), "No records to show!", Toast.LENGTH_SHORT).show(); } Please Share