Quantcast
Channel: User HaimS - Stack Overflow
Viewing all articles
Browse latest Browse all 19

Comment by HaimS on What is the equivalent listview.setSelection in case of Recycler View

$
0
0
@Nonos - You should call scrollToPosition() whenever you want the recycler view to scroll to a specific item (that is not currently showing) by its position. Further, there is no point in calling scrollToPosition() to scroll to an item being clicked because the fact that the user clicked on it indicates that it's visible and scrolling to its position will therefore have no effect.

Viewing all articles
Browse latest Browse all 19

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>