Set custom anchor when dragging a View
问题 I am using Android Drag&Drop API and am trying to set the anchor of the drag shadow to the point where the touch was made in the View . The dafault behavior is to have the anchor the middle of the View . I did some research and it seems this can be done by overriding the onProvideShadowMetrics (Point shadowSize, Point shadowTouchPoint) method in the DragShadowBuilder class. From what I understood, if I change the x,y coordinates of shadowTouchPoint it should modify the coordinates of the drag