Thank you for writing.
The default implementation of the SelectionBehavior
indeed ends the selection when you perform a drag gesture while in long press. The idea behind this is to support having both SelectionBehavior
- when this is the case when you long press - you select and if you start dragging we assume that your intention was to reorder and cancel the selection. If you don't plan to reorder items and just need selection, you can easily create your own behavior which extends SelectionBehavior
and simply override its onLongPressDrag
, where you should simply leave the method body empty.
If you don't actually perform drag, but the selection ends anyway, my guess is that you are showing ActionMode
when the selection starts, but your activity doesn't have an ActionBar
. If that is the case, when the action mode shows, the whole activity slides down in order to free space for the action mode so the drag occurs not because of your finger moving around, but because of the activity that was moving around. The solution in that case is to make sure that you have an ActionBar
which is visible while the ActionMode
is not shown as visible in the first image in this documentation article
and as is the ActionMode
's intended usage. You may also need to manually hide the ActionBar
when displaying the ActionMode
in order to ensure that one and only one of them is shown at a time.
I hope this information helps. Don't hesitate to get back to us in case you need further assistance.
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Feedback Portal
and vote to affect the priority of the items