Azoft / CarouselLayoutManager

Android Carousel LayoutManager for RecyclerView
Apache License 2.0
2.56k stars 367 forks source link

Can't override smoothScrollToPosition when using androidx #83

Closed alinberce closed 3 years ago

alinberce commented 6 years ago

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.

How to fix this?

mig35 commented 6 years ago

Hi @alinberce

I have to create a separate build of this library to support this new androidx class structure. I will do this in the nearest future.

Thanks for your report.

bernaferrari commented 5 years ago

Any progress?

mig35 commented 3 years ago

should be fixed now