-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
custom onDragStopListener #30
Comments
this is what I found that worked, but maybe you could implement it in the api to add a dedecated listener. just a suggestion |
Hey! The order is in fact committed when the |
onSwap? is this a public API? I can't find it because at that point if you loop over all your views they are still in the previous position only if you let go of the draghandler the position will be changed |
I did mean the If you need to specifically detect ACTION_UP, the solution you provided is one correct way to do it. |
yes indeed, thanks again for your awesome lib |
Is there a way to get a onDragStopListener?
I need to detect when the view is placed in the right position?
because if I use setOnViewSwapListener(); the order of the views in the draglinearlayout is not committed.
if someone changes the order of the views. I need to read the correct order of the views so I can handle code for each view.
view1.print("1");
view2.print("2");
view3.print("3");
after changing the order 2 becomes 3 and 3 becomes 2. this is what I need to call
view1.print("1");
view3.print("3");
view2.print("2");
How can I do this?
The text was updated successfully, but these errors were encountered: