Check if recyclerview is empty

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