Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- linearLayoutManager = new LinearLayoutManager(mContext, LinearLayoutManager.HORIZONTAL, false);
- this.recyclerView.setLayoutManager(linearLayoutManager);
- SnapHelper snapHelper = new PagerSnapHelper();
- adapterCarousel = new AdapterCarousel(mContext, glideRequestManager);
- adapterCarousel.setViewType(RECYCLER_VIEW_TYPE_NORMAL);
- adapterCarousel.setCarousel(carousel);
- this.recyclerView.setAdapter(adapterCarousel);
- snapHelper.attachToRecyclerView(recyclerView);
- linearLayoutManager.scrollToPosition(Integer.MAX_VALUE / 2);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement