If I understand the question, you want to scroll to a specific position but that position is the adapter’s position and not the RecyclerView
‘s item position.
You can only achieve this through the LayoutManager
.
Do something like:
rv.getLayoutManager().scrollToPosition(youPositionInTheAdapter).
Related Contents:
- How to disable RecyclerView scrolling?
- Scroll RecyclerView to show selected item on top
- Remove RecyclerView scroll effects
- RecyclerView – How to smooth scroll to top of item on a certain position?
- Detect when RecyclerView reaches the bottom most position while scrolling
- Android: How to get the current X offset of RecyclerView?
- Get center visible item of RecycleView when scrolling
- (Smooth)ScrollToPosition doesn’t work properly with RecyclerView
- Android Recyclerview GridLayoutManager column spacing
- How to animate RecyclerView items when they appear
- How to show an empty view with a RecyclerView?
- Should we use RecyclerView to replace ListView? [closed]
- How to set RecyclerView app:layoutManager=”” from XML?
- Understanding RecyclerView setHasFixedSize
- Android RecyclerView : notifyDataSetChanged() IllegalStateException
- How to save RecyclerView’s scroll position using RecyclerView.State?
- Adding Ripple Effect to RecyclerView item
- Using the recyclerview with a database
- Add a new item to recyclerview programmatically?
- RecyclerView GridLayoutManager: how to auto-detect span count?
- Set span for items in GridLayoutManager using SpanSizeLookup
- How to know when the RecyclerView has finished laying down the items?
- Handle Button click inside a row in RecyclerView
- RecyclerView itemClickListener in Kotlin
- Cannot call this method while RecyclerView is computing a layout or scrolling when try remove item from recyclerview
- RecyclerView store / restore state between activities
- How to add a fast-scroller to the RecyclerView
- Android RecyclerView ItemTouchHelper revert swipe and restore view holder
- Android – Swipe to delete RecyclerView
- How do I get the position selected in a RecyclerView?
- What is the SortedList working with RecyclerView.Adapter?
- Android Horizontal RecyclerView scroll Direction
- How can I control the scrolling speed of recyclerView.smoothScrollToPosition(position)?
- Margin between items in recycler view Android
- How to count RecyclerView items with Espresso
- Touch feedback with RecyclerView and CardView
- How to get item from RecyclerView adapter in Android
- Create Options Menu for RecyclerView-Item
- Recyclerview not scrolling to end when keyboard opens
- Endless RecyclerView with ProgressBar for pagination
- Inconsistency detected in RecyclerView, How to change contents of RecyclerView while scrolling
- notifyDataSetChanged not working on RecyclerView
- How to put RecyclerView inside NestedScrollView?
- NestedScrollview won’t start from top
- Add space to the end of the RecyclerView
- It will always be more efficient to use more specific change events if you can. Rely on notifyDataSetChanged as a last resort. RecycleView
- RecyclerView 2 Columns with CardView
- ListAdapter submitList() – How to scroll to beginning
- Span multiple columns with RecyclerView
- Scrollbar not showing in RecyclerView