Code example for View

Methods: getTop

0
    } 
 
    @Override 
    public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) {
        mScrollIndex = mListView.getFirstVisiblePosition();
        View v = mListView.getChildAt(0);
        mScrollTop = (v == null) ? 0 : v.getTop();
    } 
 
    @Override 
    public void onScrollStateChanged(AbsListView view, int scrollState) {
    } 
}