Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
169 views
in Technique[技术] by (71.8m points)

how can I point to a specific RecyclerView onClick view (Android Java)?

I have three RecyclerViews in an activity, also having three buttons on top of the activity.

I want to go to a specific RecyclerView on onClick of a respective button on top of an activity. How can this be achieved?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Change NestedScrollView instead of ScrollView. You have to calculate your desired scroll position on x or y axis and use NestedScrollView.smoothScrollTo().


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...