Gfy Member Licensed User Longtime User Dec 21, 2025 #1 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?
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 Dec 21, 2025 #2 Gfy said: 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? Click to expand... Try this, [B4X] CLVDragger Another gift for B4X community. Here is my modified version of CLVDragger which will work on B4A, B4i and B4J. I used this class in my B4X Todo List app. www.b4x.com Upvote 0
Gfy said: 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? Click to expand... Try this, [B4X] CLVDragger Another gift for B4X community. Here is my modified version of CLVDragger which will work on B4A, B4i and B4J. I used this class in my B4X Todo List app. www.b4x.com
LucasHeer Active Member Licensed User Longtime User Dec 23, 2025 #3 Gfy said: 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? Click to expand... 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
Gfy said: 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? Click to expand... 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?
Gfy Member Licensed User Longtime User Dec 29, 2025 #4 Hi LucasHeer Yes, that is exactly what i looking for. Can you share the code please. Upvote 0
LucasHeer Active Member Licensed User Longtime User Jan 8, 2026 #5 Hey sir! I apologize, I have been away from the PC for holiday. Attached is the modified clv_dragger class. It only works for B4A, and I do not think it currently allows for clicking items within the CLV items due to touch override. If you need B4i, or need clickable items, let me know and I will add it Thank you!! Attachments clv_dragger_drag_anywhere_modified.bas clv_dragger_drag_anywhere_modified.bas 10.4 KB · Views: 239 Upvote 0
Hey sir! I apologize, I have been away from the PC for holiday. Attached is the modified clv_dragger class. It only works for B4A, and I do not think it currently allows for clicking items within the CLV items due to touch override. If you need B4i, or need clickable items, let me know and I will add it Thank you!!
Xfood Expert Licensed User Longtime User Jan 9, 2026 #6 It would be nice to have the ability to manage the movement of an item with animation via code, such as Moviatem (3.20) moves item 3 to position 20 with animation like the video below. Rename .txt in .mp4 Attachments VID-20250730-WA0022.mp4.txt VID-20250730-WA0022.mp4.txt 298.1 KB · Views: 241 Upvote 0
It would be nice to have the ability to manage the movement of an item with animation via code, such as Moviatem (3.20) moves item 3 to position 20 with animation like the video below. Rename .txt in .mp4