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

Adding Long Click functionality #110

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

sqljim
Copy link

@sqljim sqljim commented Apr 14, 2019

Adding the ability to long click touch events for each image.

@LebonNic
Copy link

LebonNic commented Jan 9, 2022

Hi @sayyam! Is it possible to accept the pull request and release a new version? Or is this library not maintained anymore?

@LebonNic
Copy link

LebonNic commented Jan 9, 2022

A workaround:

imagesCarousel.setImageListener { position, imageView ->
    imageView.setOnLongClickListener {
        onLongClick(position)
        return@setOnLongClickListener true
    }

    imageView.setOnClickListener {
        onClick(position)
    }
}

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

Successfully merging this pull request may close these issues.

2 participants