GalleryLayoutManager icon indicating copy to clipboard operation
GalleryLayoutManager copied to clipboard

Not working with Kotlin code

Open 24Lathiya opened this issue 3 years ago • 0 comments

I am trying to implement GallaryLayoutManager in my kotlin code like below. but unfortunately it is not working with kotlin code.

val layoutManager = GalleryLayoutManager(GalleryLayoutManager.HORIZONTAL)
        layoutManager.attach(recyclerView, 0)
        layoutManager.setCallbackInFling(true) //should receive callback when flinging, default is false
        layoutManager.setOnItemSelectedListener { recyclerView, item, position ->
            println("===position=== $position")
        }
        layoutManager.setItemTransformer(ScaleTransformer())

If anyone have idea please let me know how to fix it.

24Lathiya avatar Oct 22 '21 06:10 24Lathiya