// siyanda zama if (recyclerview.getItemCount() == 0)   {     Toast.makeText(getActivity(), "No records to show!", Toast.LENGTH_SHORT).show();   }

Read more of this post