layoutDecorated
open fun layoutDecorated(@NonNull child: View, left: Int, top: Int, right: Int, bottom: Int)(source)
Lay out the given child view within the RecyclerView using coordinates that include any current ItemDecorations.
LayoutManagers should prefer working in sizes and coordinates that include item decoration insets whenever possible. This allows the LayoutManager to effectively ignore decoration insets within measurement and layout code. See the following methods:
- layoutDecoratedWithMargins
- getDecoratedBoundsWithMargins
- measureChild
- measureChildWithMargins
- getDecoratedLeft
- getDecoratedTop
- getDecoratedRight
- getDecoratedBottom
- getDecoratedMeasuredWidth
- getDecoratedMeasuredHeight
Parameters
child
Child to lay out
left
Left edge, with item decoration insets included
top
Top edge, with item decoration insets included
right
Right edge, with item decoration insets included
bottom
Bottom edge, with item decoration insets included