android scroll view scroll end
binding.scrollView.getViewTreeObserver().addOnScrollChangedListener(new ViewTreeObserver.OnScrollChangedListener() {
@Override
public void onScrollChanged() {
if (binding.scrollView.getChildAt(0).getBottom()
<= (binding.scrollView.getHeight() + binding.scrollView.getScrollY())) {
// end of scroll
} else {
// not end
}
}
});