code: private boolean findListView(@NonNull final View view) {
          if (view instanceof AbsListView) {
              this.listView = (AbsListView) view;
              this.listView.setOnScrollListener(createListViewScrollListener());
              return true;
          } else if (view instanceof ViewGroup) {
              ViewGroup viewGroup = (ViewGroup) view;
  
              for (int i = 0; i < viewGroup.getChildCount(); i++) {
                  if (findListView(viewGroup.getChildAt(i))) {
                      return true;
                  }
              }
          }
  
          return false;
      }
docs: Searches for the list view, which is contained by the dialog, in order to register a scroll
  listener.
  
  @param view
  The view, which should be searched, as an instance of the class {@link ViewGroup}.
  The view may not be null