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

Item Click not working if whole item view passed into getViewToTouchToStartDraggingItem() #49

Closed
Hassaan68 opened this issue Sep 23, 2020 · 2 comments
Labels
question Further information is requested

Comments

@Hassaan68
Copy link

Item Click not working if whole item view passed into getViewToTouchToStartDraggingItem() for drag view. if there is not drag icon and whole view used for click as well as drag at the same time then item click listener will not be called.

@abd3lraouf
Copy link

#Workaround

  1. just create a drag view i.e ImageView and set it as the drag view using getViewToTouchToStartDraggingItem
  2. set the image view visibility as gone.

If you set a click listener to the view it'll be called.
Hence you'll disable dragging

@ernestoyaquello
Copy link
Owner

Please read the documentation. If you want the whole item view to be used for dragging, the method getViewToTouchToStartDraggingItem() should return null.

@ernestoyaquello ernestoyaquello added the question Further information is requested label Feb 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants