get Decorated Bounds With Margins
Returns the masked, decorated bounds with margins for view
.
Note that this differs from the super method which returns the fully unmasked bounds of view
.
Getting the masked, decorated bounds is useful for item decorations and other associated classes which need the actual visual bounds of an item in the RecyclerView. If the full, unmasked bounds is needed, see getDecoratedBoundsWithMargins.
Parameters
view
the view element to check
out Bounds
a rect that will receive the bounds of the element including its maks, decoration, and margins.