roubachof/Sharpnado.CollectionView

Short press for drag of not-clickable listitems

Closed this issue · 3 comments

Is your feature request related to a problem? Please describe.
If list items have no interaction but sort order it's uncomfortable to always have to wait for a second until I can reorder them.

Describe the solution you'd like
As far as I have seen you listen to the long tap event before starting drag. You could add a option to switch that to short tap.

Describe alternatives you've considered
None found so far.

Would be really great to have this possibility. Your library is awesome 👍

@roubachof Hi again there) I would put a +1 on this one. I am using this library now and also i have a requirement to start the drag without the long press when clicking on the right handler (pic below). I've tried to implement it myself using your code but i lack the skills :( So, apparently to make this work for android we need a view that is inside our route view (like a handler on the pic), to which we attach the listener and just call startDrag: https://developer.android.com/reference/androidx/recyclerview/widget/ItemTouchHelper#startDrag(androidx.recyclerview.widget.RecyclerView.ViewHolder)

It would be fantastic if u are interested in bringing this one in the lib!

image

@roubachof i played around with it a bit and actually got it working, making a PR for u (#23) to test it out on your spare time (i don't guarantee i haven't break something). Also i did #7 for Android based on the code that the author provided there.

@roubachof this one can be closed as well i guess?