Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to check if recyclerview is empty

// siyanda zama
if (recyclerview.getItemCount() == 0)
  {
    Toast.makeText(getActivity(), "No records to show!", Toast.LENGTH_SHORT).show();
  }
 
PREVIOUS NEXT
Tagged: #check #recyclerview #empty
ADD COMMENT
Topic
Name
6+2 =