RoundedCornerDecoration

constructor(context: Context, adapter: RecyclerView.Adapter<*>, @ColorInt roundedCornerColor: Int)(source)

Parameters

context

The Context used to create the rounded corner drawables.

adapter

The RecyclerView.Adapter associated with the RecyclerView. This is used to determine the type of each item and apply the correct rounded corners.

roundedCornerColor

The color to be used for the rounded corners.