Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working with Kotlin code #37

Open
24Lathiya opened this issue Oct 22, 2021 · 0 comments
Open

Not working with Kotlin code #37

24Lathiya opened this issue Oct 22, 2021 · 0 comments

Comments

@24Lathiya
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant