Skip to content

Adding Long Click functionality#110

Open
sqljim wants to merge 2 commits intosayyam:masterfrom
sqljim:master
Open

Adding Long Click functionality#110
sqljim wants to merge 2 commits intosayyam:masterfrom
sqljim:master

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