I have a RecyclerView and related Adapter class. And I changed the GridLayoutManager's span count.
fun switchLayout() {
if (layoutManager?.spanCount == 1) {
layoutManager.spanCount = 5
} else {
layoutManager?.spanCount = 1
}
notifyItemRangeChanged(0, itemCount)
}
And then some animation comes up like below
It's interesting but I don't need it. So, How can I remove this animation?