You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a list with some items that you can click on it (radio buttons) (so onItemClickListener and all that stuff will not work). When I long click any element inside my list row, I launch a Contextual Action Bar (when item selected).
My idea is to launch a drag action too (like startDraging(position). Something like:
What I would do then is have a drag listener, if we drag an item to another position (even if we don't drop it yet), the contextual action bar will disappear, on the other hand, if we drop the element in the same position, then the CAB stays and you can continue selecting items. This is the default behaviour of Google Keep for example.
I think what is really needed is the ability to say "startDrag(position)" and having that listener... I was not really lucky for now with that libraries out there.
Looking at this library, the only way for launching a drag action is to give a id handler (like imageview)?
Thanks for your time!
The text was updated successfully, but these errors were encountered:
Hi,
OK I think I know what you want, a way to progmatically start the drag operation?
This should be possible, but won't you need to take your finger off the list item before the drag has finished?
What is the overall functionally you're trying to achieve? Long press on the item then...
Is it possible with this library? I'll explain:
I have a list with some items that you can click on it (radio buttons) (so onItemClickListener and all that stuff will not work). When I long click any element inside my list row, I launch a Contextual Action Bar (when item selected).
My idea is to launch a drag action too (like startDraging(position). Something like:
What I would do then is have a drag listener, if we drag an item to another position (even if we don't drop it yet), the contextual action bar will disappear, on the other hand, if we drop the element in the same position, then the CAB stays and you can continue selecting items. This is the default behaviour of Google Keep for example.
I think what is really needed is the ability to say "startDrag(position)" and having that listener... I was not really lucky for now with that libraries out there.
Looking at this library, the only way for launching a drag action is to give a id handler (like imageview)?
Thanks for your time!
The text was updated successfully, but these errors were encountered: