title: Android setOnScrollListener on RecyclerView deprecated
body: <p><code>setOnScrollListener</code> is deprecated. Reading the docs <a href="https://developer.android.com/reference/android/support/v7/widget/RecyclerView.html#setOnScrollListener(android.support.v7.widget.RecyclerView.OnScrollListener)" rel="nofollow noreferrer">from here</a> it tells to Use <code>addOnScrollListener(OnScrollListener)</code> and <code>removeOnScrollListener(OnScrollListener)</code>.</p>
  <p>What is the proper way to <code>add and remove OnScrollListener</code>?</p>
  <p>Do i need to use <code>removeOnScrollListner</code> in <code>onPause</code> and set it up again using <code>addOnScrollListener</code> in <code>onResume</code>??</p>