We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I'm getting a crash when I call scrollToPosition() method, my code
final CarouselLayoutManager layoutManager = new CarouselLayoutManager (CarouselLayoutManager.HORIZONTAL, false); Carousel2Adapter adapter = new Carousel2Adapter(); ArrayList<Object> objects = getObjects(); adapter.setObjects(objects); recyclerView.setAdapter(adapter); recyclerView.setHasFixedSize(true); layoutManager.setPostLayoutListener(new CarouselZoomPostLayoutListener()); layoutManager.setMaxVisibleItems(1); recyclerView.setLayoutManager(layoutManager); recyclerView.addOnScrollListener(new CenterScrollListener()); recyclerView.scrollToPosition(2);
I have tried with default LayoutManager (LinearLayoutManager) and it worked. exception I'm getting is
ava.lang.IllegalArgumentException: position can't be great then adapter items count. position is : 2
I have around 10 items is in my recycler view
The text was updated successfully, but these errors were encountered:
#22 - fix.
cbb9ff4
gradle update; android version update
@iamshajeer Please find new compile 'com.azoft.carousellayoutmanager:carousel:1.1.7' version
Sorry, something went wrong.
No branches or pull requests
Hi,
I'm getting a crash when I call scrollToPosition() method, my code
I have tried with default LayoutManager (LinearLayoutManager) and it worked. exception I'm getting is
ava.lang.IllegalArgumentException: position can't be great then adapter items count. position is : 2
I have around 10 items is in my recycler view
The text was updated successfully, but these errors were encountered: