Drag-n-Drop


 

  1. Drag-n-Drop On TextView
  2. Drag-n-Drop On LinearLayout
  3. Drag-n-Drop On RelativeLayout

 

1. Drag-n-Drop On TextView
Step 1 : Select File -> New -> Project -> Android Application Project. Fill the forms, create “Blank Activity” and click “Finish” button.
Step 2 : Open res -> layout -> activity_main.xml and add following code :

Step 3 : Open src -> package -> MainActivity.java and add following code :

Step 4 : Open AndroidManifest.xml and add following code :

ScreenShots:

dragndrop dragndrop2 dragndrop3 dragndrop4 dragndrop5

Download_button

 

2. Drag-n-Drop On LinearLayout
Step 1 : Select File -> New -> Project -> Android Application Project. Fill the forms, create “Blank Activity” and click “Finish” button.
Step 2 : Open res -> layout -> activity_main.xml and add following code :

Step 3 : Open src -> package -> MainActivity.java and add following code :

Step 4 : Open AndroidManifest.xml and add following code :

ScreenShots:

dragndrop6 dragndrop8 dragndrop7

Download_button

 

3. Drag-n-Drop On RelativeLayout
Step 1 : Select File -> New -> Project -> Android Application Project. Fill the forms, create “Blank Activity” and click “Finish” button.
Step 2 : Open res -> layout -> activity_main.xml and add following code :

Step 3 : Open src -> package -> MainActivity.java and add following code :

Step 4 : Open AndroidManifest.xml and add following code :

ScreenShots:

dragndrop11 dragndrop10 dragndrop9

Download_button