I have three RecyclerViews in an activity, also having three buttons on top of the activity.
RecyclerViews
I want to go to a specific RecyclerView on onClick of a respective button on top of an activity. How can this be achieved?
onClick
button
Change NestedScrollView instead of ScrollView. You have to calculate your desired scroll position on x or y axis and use NestedScrollView.smoothScrollTo().
NestedScrollView
ScrollView
x
y
NestedScrollView.smoothScrollTo()
2.1m questions
2.1m answers
62 comments
56.6k users