So, I\'m facing a weird problem while implementing RecyclerView in my project. I have a custom decorator to implement a consistent top and bottom padding and a rather different
I had the same issue and I fixed that with the itemDecorationCount
if (recyclerView.itemDecorationCount == 0) {
val itemDecorator = DividerItemDecoration(activity, DividerItemDecoration.VERTICAL)
itemDecorator.setDrawable(ContextCompat.getDrawable(activity, R.drawable.recycler_divider))
recyclerView.addItemDecoration(itemDecorator)
}