recyclerview getitemcount return value when list is empty 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();
}