Closed Jericho2Code closed 7 years ago
Add update the values of variables, and this help:
/*
* It is prudent to measure/layout each new view we
* receive from the Recycler. We don't have to do
* this for views we are just re-arranging.
*/
measureChildWithMargins(view, 0, 0);
mDecoratedChildWidth = getDecoratedMeasuredWidth(view);
mDecoratedChildHeight = getDecoratedMeasuredHeight(view);
layoutDecorated(view, leftOffset, topOffset,
leftOffset + mDecoratedChildWidth,
topOffset + mDecoratedChildHeight);
Good day, I try to use FixedGridLayoutManager class in my project, and when I add to recyclerView different items, there are have same height and wight, like in first shown. I think, that problem in this part: