onDraw

open fun onDraw(c: Canvas, parent: RecyclerView, state: RecyclerView.State)(source)

Draw any appropriate decorations into the Canvas supplied to the RecyclerView. Any content drawn by this method will be drawn before the item views are drawn, and will thus appear underneath the views.

Parameters

c

Canvas to draw into

parent

RecyclerView this ItemDecoration is drawing into

state

The current state of RecyclerView