Native Shopify Mobile App with 20 new features
Kickstart your hyperlocal marketplace in Corona pandemic with a starter guide
Android App Development
iOS App Development
Cross Platform App Development
Hire on-demand project developers and turn your idea into working reality.
Big thanks to Webkul and his team for helping get Opencart 220.127.116.11 release ready!
Owner and Founder. Opencart
In this blog we will read how we can use Drag and Drop in Android . Drag and Drop allows user to move your data from one view to another.
Drag And Drop process
In Drag and Drop process there are four steps
This step occurred when the user starts dragging into view. when the user starts dragging then startDrag() method will call .
This step occurs when user continues to drag and shadow intersect on view and ACTION_DRAG_ENTERED event will call
user can drop view anywhere on the screen . But the thing to be noted here is that you can drop the dragged element in any part of the screen but the dropped event will be called only when if you drop the view in a view that is associated with the drag event and ACTION_DROP event will call
when user drops shadow anywhere and then this event will occur and ACTION_DRAG_ENDED event will call
Now let’s start code for it.
Now you can see in the screenshot how we drag car from one dimension to another
So here we discussed about How we can use Drag and Drop in Android. Thanks for reading this blog and You can get other blogs from here
Your email address will not be published. Required fields are marked*
Save my name email and website in this browser for the next time I comment.
Be the first to comment.
Enquiry or Requirement
If you have more details or questions, you can reply to the received confirmation email.