It works like this: InteractiveScrollView inherits from ScrollView and overrides onScrollChanged to validate scroll position. If bottom has been reached, onBottomReachedListener triggers.
Usage:
InteractiveScrollView scrollView;
scrollView = (InteractiveScrollView) findViewById( R.id.scrollView);
scrollView.setOnBottomReachedListener(new InteractiveScrollView.OnBottomReachedListener() {
@Override
public void onBottomReached()
{
// bottom reached
}
});
You can find the gist here.