recycler-view-divider / com.fondesa.recyclerviewdivider / BaseDividerItemDecoration / addTo

addTo

fun addTo(recyclerView: RecyclerView): Unit

Adds this decoration to the given RecyclerView. If this decoration was already added to the given RecyclerView, it will be removed first.

Parameters

recyclerView - the RecyclerView which will add this RecyclerView.ItemDecoration.