Code example for View.DragShadowBuilder

0
    { 
 
        if (motionEvent.getAction() == MotionEvent.ACTION_DOWN)
        { 
            ClipData data = ClipData.newPlainText("", "");
            DragShadowBuilder shadowBuilder = new View.DragShadowBuilder(view);
            view.startDrag(data, shadowBuilder, view, 0);
            // view.setVisibility(View.INVISIBLE); 
 
            return true; 
        } 
 
        return false; 
    } 
 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE