Everything went fine and I used to override smoothScrollToPosition in order to get a smaller speed for scrolling to a position. I decided to convert to androidx as it has beta1 version. After converting this does not work anymore.
Android studio suggests to override fun smoothScrollToPosition(recyclerView: RecyclerView, state: RecyclerView.State, position: Int) { to override fun smoothScrollToPosition(recyclerView: android.support.v7.widget.RecyclerView, state: android.support.v7.widget.RecyclerView.State, position: Int) {
But now the RecyclerView is part of androidx.recyclerview.widget.RecyclerView.
Beside that, I get a Unresolved reference: startSmoothScroll and I have no idea why.
Everything went fine and I used to override
smoothScrollToPosition
in order to get a smaller speed for scrolling to a position. I decided to convert toandroidx
as it has beta1 version. After converting this does not work anymore.Android studio suggests to
override fun smoothScrollToPosition(recyclerView: RecyclerView, state: RecyclerView.State, position: Int) {
tooverride fun smoothScrollToPosition(recyclerView: android.support.v7.widget.RecyclerView, state: android.support.v7.widget.RecyclerView.State, position: Int) {
But now the RecyclerView is part of
androidx.recyclerview.widget.RecyclerView
.Beside that, I get a
Unresolved reference: startSmoothScroll
and I have no idea why.How to fix this?