w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Android Prevent Drag and Drop to Menu Bar

there is very simple issue you are facing.

ACTION_DRAG_ENDED is not fired because this action is fired when you registered a view to drag listener. All the view that registered using setOnDragListener(). for these kind of view all DragEvent Action fired. but because your action bar view not registered using setOnDragListener(). that why ACTION_DRAG_ENDED or any of the action is not fired for perticular view.

Summary is that if you drag and drop a view(Suppose A) on the view which register on setOnDragListener() listener(Suppose B). for only that view(Here B) all the action getting fired.

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.