Scroll offset of GridView
问题 Is there a way to determine the current scroll offset or scroll position of a GridView? View.getScrollY() // Underlying var is not updated during a scroll. I have tried setting an OnScrollListener but the onScroll callback is not fine grained enough for my purposes. Here is the how I'm attempting to determine the scroll offset using an OnScrollListener. private int getScrollY() { int top = 0; if (mGridView.getChildCount() > 0) { final View firstView = mGridView.getChildAt(0); top = firstView