Android Question clv dragging without extra button

Gfy

Member
Licensed User
Longtime User
I try to implement a function for customlistview to drag items without extra button like in CLVdragging library.

I like to use the ItemLongClick() event to start dragging without lifting the finger.



I have ftry to send via reflection ACTION_UP and then a ACTION_DOWN event, but wihtout a correct result.

Is there a way to do it?
 

AnandGupta

Expert
Licensed User
Longtime User
Try this,

 
Upvote 0

LucasHeer

Active Member
Licensed User
Longtime User
Hey sir!

I modified the CLVDragger class that @AnandGupta mentioned.

It allows scrolling and long-click to drag/drop. Is this what you are looking for?:

If this is what you need, do you have anything clickable on the view itself?
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…