Set Grid layout Recyclerview

PHOTO EMBED

Thu Apr 14 2022 09:19:59 GMT+0000 (Coordinated Universal Time)

Saved by @kamrantariq_123 #xml #java

<androidx.recyclerview.widget.RecyclerView
    app:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
    app:spanCount="2"
    ...>
content_copyCOPY

Recyclerview set Gridlayout in xml

https://stackoverflow.com/questions/35679776/how-to-set-recyclerview-applayoutmanager-from-xml