title: nested scrollview inside recyclerview not triggering onscrolllistener when scrolling down
body: <p><strong>Edit</strong>:</p>
  
  <p>I have loading more than 200 datas from webservice.When I am scrolling down the recyclerview, it is not triggering the scrollLisener.</p>
  
  <p>Because, if I'm not used dy>0 condition, it is loading all next 20 datas, 20 datas and so on, initially when coming to this activity.  </p>
  
  <p>Below I have posted the code relevant to that.</p>
  
  <p><strong>Logcat:</strong></p>
  
  <pre><code>E/dy: 0
  </code></pre>
  
  <p><strong>Activity code:</strong></p>
  
  <pre><code>recyclerView = (RecyclerView) findViewById(R.id.rv_list_tab_home_recycler);
  
  recyclerView.setHasFixedSize(true);
  
  mLayoutManager = new LinearLayoutManager(this);
  
  recyclerView.setLayoutManager(mLayoutManager);
  
  //homePostitemsAdapter = new UserPostAdapter(TabHomeActivity.this, homePostItemsList);
  homePostitemsAdapter = new TabHomeAdapter(homePostItemsList, recyclerView);
  
  //  recyclerView.setItemAnimator(new DefaultItemAnimator());
  recyclerView.setAdapter(homePostitemsAdapter);
  recyclerView.setNestedScrollingEnabled(false);
  </code></pre>
  
  <p><strong>Adapter Code:</strong></p>
  
  <pre><code>private int visibleThreshold = 5;
  private int lastVisibleItem, totalItemCount;
  private boolean loading;
  private OnLoadMoreListener onLoadMoreListener;
  
  public TabHomeAdapter(List&lt;HomePostItems&gt; objects, RecyclerView recycle) {
  
      homePostArrListItems = objects;
  
      if (recycle.getLayoutManager() instanceof LinearLayoutManager) {
  
          final LinearLayoutManager linearLayoutManager = (LinearLayoutManager) recycle
                  .getLayoutManager();
  
          Log.e("LinearLayoutManager", "Test");
  
          recycle.addOnScrollListener(new RecyclerView.OnScrollListener() {
              @Override
              public void onScrolled(RecyclerView recyclerView,
                                             int dx, int dy) {
                  super.onScrolled(recyclerView, dx, dy);
  
                  totalItemCount = linearLayoutManager.getItemCount();
                  lastVisibleItem = linearLayoutManager
                                  .findLastVisibleItemPosition();
                  Log.e("dy", ""+dy);
  
                  if (!loading
                                  &amp;&amp; totalItemCount &lt;= (lastVisibleItem + visibleThreshold ) &amp;&amp; dy &gt; 0) {
                      // End has been reached
                      // Do something
  
                      Log.e("totalItemCount", ""+totalItemCount);
                      Log.e("lastVisibleItem", ""+lastVisibleItem);
                      Log.e("visibleThreshold", ""+visibleThreshold);
                      Log.e("loading", ""+loading);
                      Log.e("onLoadMoreListener", ""+onLoadMoreListener);
  
                      if (onLoadMoreListener != null) {;
                          onLoadMoreListener.onLoadMore();
                      }
  
                      loading = true;
                  }
  
              }
          });
      } 
  
      public void setLoaded() {
          loading = false;
      }
  
      @Override
      public int getItemCount() {    
          return homePostArrListItems.size(); 
      }
  
      public void setOnLoadMoreListener(OnLoadMoreListener onLoadMoreListener) {
          this.onLoadMoreListener = onLoadMoreListener;
      }
  
      public static class ProgressViewHolder extends RecyclerView.ViewHolder {
          public ProgressBar progressBar;
          public ProgressViewHolder(View v) {
              super(v);
              progressBar = (ProgressBar) v.findViewById(R.id.progressBar1);
          }
      }
  }
  </code></pre>
  
  <p>When I initially came to this activity, I am getting dy as 0. When I'm scrolling the <code>RecyclerView</code> , dy is not triggering in <code>LogCat</code>.</p>
  
  <p>I think because of the <code>NestedScrollView</code> it is <a href="https://stackoverflow.com/questions/37073376/recyclerview-with-endless-scrolling-in-nestedscrollview-triggers-onscrolled">not working</a>.But I need nested scroll view because I need to scroll down some views before <code>RecyclerView</code>.</p>