Grid Layout In Recycler View Is Cutting Of The First Two Items
I am using a Recycler view that hold a Grid Layout to present the items in a 2 by 2 way. The problem is that the first two items are not stretching accordingly with the content ins
Solution 1:
You can use something like this for showing 2 by 2 items. And you need to show the RecyclerView
for items showing and delete the spanCount
.
vMovementTypeRv.setLayoutManager(new GridLayoutManager(mContext, 4));
vMovementTypeRv.setHasFixedSize(true);
Post a Comment for "Grid Layout In Recycler View Is Cutting Of The First Two Items"