RecyclerViewCornerDecoration

class RecyclerViewCornerDecoration @JvmOverloads constructor(context: Context, seslRoundedCorners: Int = ROUNDED_CORNER_ALL) : RecyclerView.ItemDecoration(source)

An RecyclerView.ItemDecoration that draws rounded corners for a RecyclerView.

This decoration utilizes SeslRoundedCorner to achieve the rounded corner effect. It considers the padding of the RecyclerView when drawing the corners.

Parameters

context

The Context used to create the SeslRoundedCorner.

seslRoundedCorners

An integer representing the corners to be rounded. Defaults to SeslRoundedCorner.ROUNDED_CORNER_ALL. See SeslRoundedCorner for available options like SeslRoundedCorner.ROUNDED_CORNER_TOP_LEFT, SeslRoundedCorner.ROUNDED_CORNER_TOP_RIGHT, etc.

Constructors

Link copied to clipboard
constructor(context: Context, seslRoundedCorners: Int = ROUNDED_CORNER_ALL)

Functions

Link copied to clipboard
open override fun seslOnDispatchDraw(c: Canvas, parent: RecyclerView, state: RecyclerView.State)