calculateItemDecorationsForChild
Calculates the item decor insets applied to the given child and updates the provided Rect instance with the inset values.
- The Rect's left is set to the total width of left decorations.
- The Rect's top is set to the total height of top decorations.
- The Rect's right is set to the total width of right decorations.
- The Rect's bottom is set to total height of bottom decorations.
Note that item decorations are automatically calculated when one of the LayoutManager's measure child methods is called. If you need to measure the child with custom specs via measure, you can use this method to get decorations.
Parameters
child
The child view whose decorations should be calculated
outRect
The Rect to hold result values