You can make the
center and the
match_parent. This will make the items stick to the center, whereas if multiple items are present, it will make the items spread from center. To keep the clickable area equal, you can use
LinearLayoutManager as the Layout Manager for the recyclerView.
LinearLayoutManager layoutManager = new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false);
RecyclerView myList = (RecyclerView) findViewById(R.id.my_recycler_view);
For the items used in recyclerView, you can keep width as
0dp and make the
1. So here, all items get equal weights and help you achieve your objective. Do let me know if this works.