How to detect overscroll in Android ListView?

You can override the method onOverScrolled, as it respond to the results of an over-scroll operation.


scrollY = non-Zero and clampedY = true --> OverScroll state occure While Scrolling bottom to top

scrollY = Zero and clampedY = true --> OverScroll state occure While Scrolling top to bottom

so

@Override
protected void onOverScrolled(int scrollX, int scrollY, boolean clampedX, boolean clampedY) {
    super.onOverScrolled(scrollX, scrollY, clampedX, clampedY);

    if(clampedY){
        if(scrollY==0){
            //over Scroll at top
        }else {
            //over Scroll at Bottom
        }
    }
}