To determine if you are at the end of your custom ScrollView
you could also use a member variable and store the last y-position. Then you can compare the last y-position with the current scroll position.
private int scrollViewPos;
...
@Override
public void onScrollChanged(ScrollViewExt scrollView, int x, int y, int oldx, int oldy) {
//reached end of scrollview
if (y > 0 && scrollViewPos == y){
//do something
}
scrollViewPos = y;
}