title: how to detect the position of the scroll nestedscrollview android at the bottom?
body: <p>i just want to detect the position of the scroll nestedscrollview android at the bottom, and the to call function.
  my code is :</p>
  
  <pre><code>scroll.getViewTreeObserver()
        .addOnScrollChangedListener(new ViewTreeObserver.OnScrollChangedListener() {
             @Override
             public void onScrollChanged() {
                 int totalHeight = scroll.getChildAt(0).getHeight();
                 int scrollY = scroll.getScrollY();
                 Log.v("position", "totalHeight=" + totalHeight + "scrollY=" + scrollY);
                 if (scrollY==totalHeight) {
                     getPlaylistFromServer("more");
                 }
             }
        });
  </code></pre>
  
  <p>but totalheight not same wit MAX ScrollY. how to fix it ? </p>