code: public static int getListYScroll(@NonNull final ListView list) {
          View child = list.getChildAt(0);
          return child == null ? -1
              : list.getFirstVisiblePosition() * child.getHeight() - child.getTop() + list.getPaddingTop();
      }
docs: This only works assuming that all list items have the same height!