[Solved] How is playstore app displaying multiples pages on view pager


It’s not a ViewPager, it is a RecyclerView which has Horizontal LinearLayout Manager and also have LinearSnapHelper

You can use snapHelper like this:

SnapHelper snapHelper;

snapHelper = new LinearSnapHelper();
snapHelper.attachToRecyclerView(recyclerView);

LayoutManager:

LinearLayoutManager llm = new LinearLayoutManager(mContext, LinearLayoutManager.HORIZONTAL, false);
recyclerView.setLayoutManager(llm);

0

solved How is playstore app displaying multiples pages on view pager