onDraw
open fun onDraw(@NonNull c: @NonNull Canvas, @NonNull parent: @NonNull RecyclerView, @NonNull state: @NonNull RecyclerView.State)
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
Deprecated
Override onDraw