I have a Fragment with structure:
<NestedScrollView>
<LinearLayout
...
android:orientation="vertical"
...>
<View>
<View>
<RecyclerView />
</LinearLayout>
</NestedScrollView>
I want to bring specified adapter position with given offset (in my case, bring to top of screen). I do following this post
Recycleview scroll to a position not working inside Nestedscrollview
but it isn't working for me. I think it make "scroll to position" but not "bring position to top".
I want a statement such us scrollToPositionWithOffset
for NestedScrollView
.
Please help me. Thanks in advance.