Closed anik123 closed 7 years ago
@anik123 Call RecyclerView.scrollToPosition method
@mig35 i am getting
java.lang.IllegalArgumentException: position can't be great then adapter items count.
after using your solution.
@anik123 Are you using last library version ('com.azoft.carousellayoutmanager:carousel:1.1.7')?
My code is :
layoutManager.setPostLayoutListener(new CarouselZoomPostLayoutListener());
recyclerView.setLayoutManager(layoutManager);
recyclerView.setHasFixedSize(true);
recyclerView.setAdapter(adapter);
recyclerView.addOnScrollListener(new CenterScrollListener());
recyclerView.scrollToPosition(contacts.size()-1);
@anik123 have you looked what version do you use?
@mig35 that solve the issue. Thanks
Is there any option/method to set center by manually(programatically)?
Please help?
Thanks in avdance.