Answer the question
In order to leave comments, you need to log in
Why doesn't programmatically scroll to the specified RecyclerView element?
There is a button with a handler:
view.findViewById(R.id.main_button).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
winnerList.post(new Runnable() {
@Override
public void run() {
gameInfo.setVisibility(View.GONE);
winnerInfo.setVisibility(View.VISIBLE);
winnerList.smoothScrollToPosition(80);
}
});
}
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question