code: private boolean isListViewScrolledToTop(@NonNull final AbsListView listView) {
          if (listView.getFirstVisiblePosition() == 0) {
              if (listView.getChildCount() == 0) {
                  return true;
              } else {
                  View child = listView.getChildAt(0);
                  return child == null || child.getTop() == 0;
              }
          }
  
          return false;
      }
docs: Returns, whether a specific list view is scrolled to the top, or not.
  
  @param listView
  The list view as an instance of the class {@link AbsListView}. The list view may not
  be null
  @return True, if the given list view is scrolled to the top, false otherwise