recyclerview is empty callback code example
Example: how to check if recyclerview is empty
// siyanda zama
if (recyclerview.getItemCount() == 0)
{
Toast.makeText(getActivity(), "No records to show!", Toast.LENGTH_SHORT).show();
}
// siyanda zama
if (recyclerview.getItemCount() == 0)
{
Toast.makeText(getActivity(), "No records to show!", Toast.LENGTH_SHORT).show();
}