Any idea how to create a page indicator for recyclerview list ?
there is actually a very good library for this purpose. just add this to your gradle dependencies
implementation "ru.tinkoff.scrollingpagerindicator:scrollingpagerindicator:1.0.6"
then add the layout
then add the indicator to your recyclerview like this
RecyclerView recyclerView = findViewById(R.id.recycler);
LayoutManager layoutManager = new LinearLayoutManager(this,
LinearLayoutManager.HORIZONTAL, false);
recyclerView.setLayoutManager(layoutManager);
DemoRecyclerViewAdapter recyclerAdapter = new DemoRecyclerViewAdapter();
recyclerView.setAdapter(recyclerAdapter);
ScrollingPagerIndicator recyclerIndicator = findViewById(R.id.indicator);
recyclerIndicator.attachToRecyclerView(recyclerView);