I want my RecyclerView
items align to screen borders,
android:layout_width="match_parent"
isn't working and it's giving me this result:
While this is what I'm trying to achieve:
Any help would be appreciated.
I want my RecyclerView
items align to screen borders,
android:layout_width="match_parent"
isn't working and it's giving me this result:
While this is what I'm trying to achieve:
Any help would be appreciated.
recyclerView.setLayoutManager(new GridLayoutManager(this, numberOfColumns));
Here, numberOfColumns
value would be 2 is you want to show to items at once, equally spaced, in a grid manner.