Drag and drop in Sketchware

Here is an example of implementation of a simple drag and drop operation in Sketchware. Follow the steps given below. 1. Create a new project in Sketchware. 2. In main.xml , add a LinearH linear1 with width and height match_parent . Inside linear1 and a LinearV linear2 and a LinearH linear3 . For linear3 set background colour as grey. Inside linear2 add three ImageViews with width and height 50, and scale type FIT_CENTER. 2. Add three Images and set them as images of ImageViews in linear2 . 3. Add a Vibrator component vib . 4. Create two More Blocks: i. setLongClickListener to ImageView:imageview ii. drag_listener Note that setLongClickListener block contains an ImageView variable imageview . 5. Define more block setLongClickListener by using following codes: _imageview.setOnLongClickListener(new View.OnLongClickListener() { public boolean onLongClick(View v) { ClipData.Item item = new ClipData.Item(v.getTag().toString()...