RecyclerView OnScrollStateChanged() and onScrolled()
<p>My question is, can We call <code>RecyclerView</code>'s <code>onScrolled()</code> Method from <code>onScrollStateChanged()</code> method. The reason is I want to check two conditions. If <code>SCROLL_STATE_SETTLING</code> is true only then check if the user has scrolled down. Is there any other way to check Both of them? </p>

<pre><code>recyclerView.addOnScrollListener(new RecyclerView.OnScrollListener() {
        @Override
        public void onScrollStateChanged(RecyclerView recyclerView, int newState) {
            super.onScrollStateChanged(recyclerView, newState);

            if (newState == RecyclerView.SCROLL_STATE_SETTLING) {

              // Now I have to check if the user has scrolled down or up.  

            }
        }

        @Override
        public void onScrolled(RecyclerView recyclerView, int dx, int dy) {
            super.onScrolled(recyclerView, dx, dy);


        }
    });
</code></pre>