How to align RecyclerView items. I am using ChipsLayoutManager so that i can get items side by side it is working but it is leaving lots of space and i want the next item to be continue where the first end.
Here is the code:
ChipsLayoutManager chipsLayoutManager = ChipsLayoutManager.newBuilder(Quran_e_Kareem.this)
//a layoutOrientation of layout manager, could be VERTICAL OR HORIZONTAL. HORIZONTAL by default
.setOrientation(ChipsLayoutManager.HORIZONTAL)
// row strategy for views in completed row, could be STRATEGY_DEFAULT, STRATEGY_FILL_VIEW,
//STRATEGY_FILL_SPACE or STRATEGY_CENTER
.setRowStrategy(ChipsLayoutManager.STRATEGY_DEFAULT)
// whether strategy is applied to last row. FALSE by default
.build();
listView.setLayoutManager(chipsLayoutManager);
Any help is appreciated.