How To Make The Sizes Of Every Item In A Recyclerview Different?
I want to achieve something like this: But here's what I get after trying: I already set the height of the layout of the items to WRAP_CONTENT but the result is still the same. W
Solution 1:
For those who are looking for an answer, just use a StaggeredGridLayoutManager
as the RecyclerView
's layout manager like this:
recycler.setLayoutManager(new StaggeredGridLayoutManager(2, StaggeredGridLayoutManager.VERTICAL));
Post a Comment for "How To Make The Sizes Of Every Item In A Recyclerview Different?"