I want to increase the shadow of the image when dragging. I created my own dragshadowbuilder and increased the size of the double, but nothing worked.
public class ImageDragShadowBuilder extends View.DragShadowBuilder { public ImageDragShadowBuilder(View v) { super(v); } @Override public void onProvideShadowMetrics(Point shadowSize, Point touchPoint) { shadowSize.set(getView().getWidth()*2, getView().getHeight()*2); touchPoint.set(getView().getWidth() / 2, getView().getHeight() / 2); }}
What is the reason?
source share