B4J Library [class] CLVDragger - drag to reorder items

Erel

Administrator
Staff member
Licensed User
CLVDragger.gif


Usage:
- Call dragger.AddDragButtons to add the drag button.
- Call dragger.RemoveDragButtons to remove the buttons.
- Call dragger.Resize when the parent resizes.

See the attached example.

For now it is a B4J only class.

Depends on jXUI v1.91+ and xCustumListView v1.70+
 

Attachments

Eme Fibonacci

Well-Known Member
Licensed User
I Can see something like this on my android 8.

Of course, this can be checked in settings > System> Languages & Input> Language> Language Preferences.

Maybe android version may have others functions:

In android 8 this type of vision is always movable.
There is a title bar and a "more" button on the top right side.
At bottom of list there is a "Add another item" button.

Just a suggestion.
 

cimperia

Active Member
Licensed User
How would it be possible to enhance the drag action so that it does not stop when the dragged item reaches the top of the CLV window when there are still some items above it?

In other words, there's a CLV with 50 items say, and 10 are displayed at a time. You start dragging item 50 and when it reaches item 40, ie the top of the CLV window, the dragging action stops, even though the item is still pressed. One way to keep the dragging going is to continuously wiggle the finger on the item, but it's not very satisfying from a user viewpoint.

How could we modify the code so that the dragging carries on until the finger is lifted?

Thank you.
 
Top