0

How can I enable the recycler view scrolling only when a particular condition meets? Only Scroll the view when the right button is pressed otherwise it remains to freeze only changed to the next view when the button is pressed.

questionsView.suppressLayout(true);
right.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                if(ques_id<list.size()-1)
                  questionsView.smoothScrollToPosition(ques_id + 1);

            }
        });
Karmesh Duggar
  • 13
  • 1
  • 11

0 Answers0