Search code examples
androidandroid-recyclerviewgridlayoutmanagerlinearlayoutmanager

LinearLayoutManager vs GridLayoutManager


I don't have any coding question or something, I had this application that populates (from a webservice) a gridlayoutmanager recyclerview of 2 rows and now the client wants it to be a List. I just want to ask which is better for the performance setting the number of rows of the gridlayoutmanager to 1, or switching to LinearLayoutmanager. regards,


Solution

  • it's more elegant using LinearLayoutManager if you have one row, but for performance it's same.